Skip to content

Commit 5e9533c

Browse files
committed
chore: Add tests for a the mtlsEndpoint check
1 parent d812dc8 commit 5e9533c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gax-java/gax/src/test/java/com/google/api/gax/rpc/ClientContextTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,8 +1264,7 @@ void testSetApiKey_withDefaultCredentials_overridesCredentials() throws IOExcept
12641264
@Test
12651265
void test_nullMtlsEndpointIsNotPassedToTransportChannel() throws IOException {
12661266
// Set the mtlsEndpoint in the TransportChannelProvider as null. This configures the
1267-
// ClientContext
1268-
// to attempt to pass the mtlsEndpoint over.
1267+
// ClientContext to attempt to pass the mtlsEndpoint over.
12691268
TransportChannelProvider transportChannelProvider =
12701269
new FakeTransportProvider(
12711270
FakeTransportChannel.create(new FakeChannel()), null, true, null, null, null, null);
@@ -1276,6 +1275,7 @@ void test_nullMtlsEndpointIsNotPassedToTransportChannel() throws IOException {
12761275
new FakeStubSettings.Builder()
12771276
.setEndpoint(DEFAULT_ENDPOINT)
12781277
// Set this to be null so that the resolved mtls endpoint is null
1278+
// This resolved value should not be passed to the TransportChannelProvider
12791279
.setMtlsEndpoint(null)
12801280
.build();
12811281
ClientSettings.Builder clientSettingsBuilder = new FakeClientSettings.Builder(settings);

0 commit comments

Comments
 (0)