File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
tests/src/test/java/net/devh/boot/grpc/test/setup Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 40
40
@ SpringBootTest (properties = {
41
41
"grpc.server.port=0" ,
42
42
"grpc.client.GLOBAL.negotiationType=PLAINTEXT" ,
43
- "grpc.client.other .address=self" ,
43
+ "grpc.client.test .address=self: self" ,
44
44
})
45
45
@ SpringJUnitConfig (classes = {ServiceConfiguration .class , BaseAutoConfiguration .class })
46
46
@ DirtiesContext
47
47
public class SelfNameResolverConnectionTest {
48
48
49
49
private static final Empty EMPTY = Empty .getDefaultInstance ();
50
50
51
- @ GrpcClient ("self:self " )
51
+ @ GrpcClient ("test " )
52
52
private TestServiceBlockingStub selfStub ;
53
53
54
- @ GrpcClient ("self:other" )
55
- private TestServiceBlockingStub otherStub ;
56
-
57
54
/**
58
55
* Tests the connection via the implicit client address.
59
56
*/
@@ -62,12 +59,4 @@ public void testSelfConnection() {
62
59
assertEquals ("1.2.3" , this .selfStub .normal (EMPTY ).getVersion ());
63
60
}
64
61
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
-
73
62
}
You can’t perform that action at this time.
0 commit comments