Skip to content

Commit 0200e33

Browse files
author
Luan Kevin Ferreira
committed
Fix the self connection test due to changes of name resolution.
1 parent 65444e9 commit 0200e33

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

tests/src/test/java/net/devh/boot/grpc/test/setup/SelfNameResolverConnectionTest.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,17 @@
4040
@SpringBootTest(properties = {
4141
"grpc.server.port=0",
4242
"grpc.client.GLOBAL.negotiationType=PLAINTEXT",
43-
"grpc.client.other.address=self",
43+
"grpc.client.test.address=self:self",
4444
})
4545
@SpringJUnitConfig(classes = {ServiceConfiguration.class, BaseAutoConfiguration.class})
4646
@DirtiesContext
4747
public class SelfNameResolverConnectionTest {
4848

4949
private static final Empty EMPTY = Empty.getDefaultInstance();
5050

51-
@GrpcClient("self:self")
51+
@GrpcClient("test")
5252
private TestServiceBlockingStub selfStub;
5353

54-
@GrpcClient("self:other")
55-
private TestServiceBlockingStub otherStub;
56-
5754
/**
5855
* Tests the connection via the implicit client address.
5956
*/
@@ -62,12 +59,4 @@ public void testSelfConnection() {
6259
assertEquals("1.2.3", this.selfStub.normal(EMPTY).getVersion());
6360
}
6461

65-
/**
66-
* Tests the connection via the explicit client address.
67-
*/
68-
@Test
69-
public void testOtherConnection() {
70-
assertEquals("1.2.3", this.otherStub.normal(EMPTY).getVersion());
71-
}
72-
7362
}

0 commit comments

Comments
 (0)