Skip to content

Commit 1960273

Browse files
committed
fix: fix tests
1 parent ed33f23 commit 1960273

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,17 +641,15 @@ void endpointContextBuild_resolvesServerAddress() throws IOException {
641641

642642
@Test
643643
void endpointContextBuild_resolvesPort() throws IOException {
644-
645644
String endpoint = "http://localhost:7469";
646-
647645
EndpointContext endpointContext =
648646
defaultEndpointContextBuilder
649647
.setClientSettingsEndpoint(endpoint)
650648
.setTransportChannelProviderEndpoint(null)
651649
.build();
652650
Truth.assertThat(endpointContext.resolvedServerPort()).isEqualTo(7469);
653651

654-
endpoint = "localhost:-1";
652+
endpoint = "localhost:7469";
655653
endpointContext =
656654
defaultEndpointContextBuilder
657655
.setClientSettingsEndpoint(endpoint)

0 commit comments

Comments
 (0)