Move code around so factory gets address not port

This commit is contained in:
Dave Syer
2024-10-18 11:16:54 +01:00
committed by Dave Syer
parent 85de440e50
commit 3cb6ce3912
14 changed files with 262 additions and 214 deletions

View File

@@ -43,7 +43,7 @@ import io.grpc.ManagedChannel;
class GrpcServerIntegrationTests {
@Nested
@SpringBootTest(properties = { "spring.grpc.server.address=0.0.0.0", "spring.grpc.server.port=0" })
@SpringBootTest(properties = { "spring.grpc.server.host=0.0.0.0", "spring.grpc.server.port=0" })
class ServerWithAnyIPv4AddressAndRandomPort {
@Test
@@ -55,7 +55,7 @@ class GrpcServerIntegrationTests {
}
@Nested
@SpringBootTest(properties = { "spring.grpc.server.address=::", "spring.grpc.server.port=0" })
@SpringBootTest(properties = { "spring.grpc.server.host=::", "spring.grpc.server.port=0" })
class ServerWithAnyIPv6AddressAndRandomPort {
@Test
@@ -67,7 +67,7 @@ class GrpcServerIntegrationTests {
}
@Nested
@SpringBootTest(properties = { "spring.grpc.server.address=127.0.0.1", "spring.grpc.server.port=0" })
@SpringBootTest(properties = { "spring.grpc.server.host=127.0.0.1", "spring.grpc.server.port=0" })
class ServerWithLocalhostAndRandomPort {
@Test