Skip to content

Commit cf47fde

Browse files
author
Alexander Furer
committed
fixing port collision in parallel tests
1 parent b12c228 commit cf47fde

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
import java.util.concurrent.ExecutionException;
1313

1414
import static org.junit.Assert.assertTrue;
15-
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.DEFINED_PORT;
15+
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.NONE;
1616

1717
/**
1818
* Created by alexf on 28-Jan-16.
1919
*/
2020
@RunWith(SpringRunner.class)
21-
@SpringBootTest(classes = {DemoApp.class },webEnvironment = DEFINED_PORT
22-
,properties = {"spring.aop.proxy-target-class=true"}
21+
@SpringBootTest(classes = {DemoApp.class },webEnvironment = NONE
22+
,properties = {"spring.aop.proxy-target-class=true","grpc.port=6666"}
2323
)
2424
@ActiveProfiles(profiles = {"aopTest"})
2525
public class DemoAppTestAop {

0 commit comments

Comments
 (0)