Skip to content

Commit 17f0a45

Browse files
committed
Remove explicit in-process flags from tests
With the use of the `@AutoConfigureTestGrpcTransport` these are no longer necessary
1 parent f01035b commit 17f0a45

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

basic/grpc-client/src/test/java/org/springframework/integration/samples/grpc/client/GrpcClientTests.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,7 @@
3737
*
3838
* @author Glenn Renfro
3939
*/
40-
@SpringBootTest(properties = {
41-
"spring.grpc.server.inprocess.name=test",
42-
"spring.grpc.client.channels.spring-integration.address=in-process:test"
43-
44-
})
40+
@SpringBootTest
4541
@DirtiesContext
4642
@ExtendWith(OutputCaptureExtension.class)
4743
@AutoConfigureTestGrpcTransport

basic/grpc-server/src/test/java/org/springframework/integration/samples/grpc/server/GrpcServerTests.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,12 @@
3939
*
4040
* @author Glenn Renfro
4141
*/
42-
@SpringBootTest({
43-
"spring.grpc.server.inprocess.name=test"
44-
})
42+
@SpringBootTest
4543
@ImportGrpcClients(
4644
types = {
4745
SimpleGrpc.SimpleBlockingStub.class,
4846
SimpleGrpc.SimpleStub.class
49-
},
50-
target = "in-process:test"
51-
)
47+
})
5248
@AutoConfigureTestGrpcTransport
5349
class GrpcServerTests {
5450

0 commit comments

Comments
 (0)