Skip to content

Commit 297a964

Browse files
author
Alexander Furer
committed
test fixes:tests run in parallel, use unique port for grpc server per test
1 parent 4672c31 commit 297a964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grpc-spring-boot-starter-demo/src/test/java/org/lognet/springboot/grpc/OrderedInterceptorsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
*/
3333
@RunWith(SpringRunner.class)
3434
@SpringBootTest(classes = {DemoApp.class, TheConfiguration.class},
35-
webEnvironment = WebEnvironment.NONE, properties = "grpc.port=7777")
35+
webEnvironment = WebEnvironment.NONE, properties = "grpc.port=7778")
3636
public class OrderedInterceptorsTest {
3737

3838
private ManagedChannel channel;
3939
private static List<Integer> calledInterceptors = new ArrayList<>();
4040

4141
@Before
4242
public void setup() {
43-
channel = ManagedChannelBuilder.forAddress("localhost", 7777)
43+
channel = ManagedChannelBuilder.forAddress("localhost", 7778)
4444
.usePlaintext(true)
4545
.build();
4646
calledInterceptors.clear();

0 commit comments

Comments
 (0)