Skip to content

Commit 51558bc

Browse files
committed
build: use random port for CI
1 parent 263dc0c commit 51558bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/jooby-test/src/test/java/io/jooby/test/AppPerTestUsingJoobyTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class AppPerTestUsingJoobyTest {
1818

1919
static OkHttpClient client = new OkHttpClient();
2020

21-
@JoobyTest(value = TestApp.class)
21+
@JoobyTest(value = TestApp.class, port = 0)
2222
public void sayHi(String serverPath) throws IOException {
2323
Request request = new Request.Builder().url(serverPath).build();
2424

@@ -27,7 +27,7 @@ public void sayHi(String serverPath) throws IOException {
2727
}
2828
}
2929

30-
@JoobyTest(value = TestApp.class)
30+
@JoobyTest(value = TestApp.class, port = 0)
3131
public void sayH2i(int serverPort) throws IOException {
3232
Request request = new Request.Builder().url("http://localhost:" + serverPort + "/test").build();
3333

@@ -36,7 +36,7 @@ public void sayH2i(int serverPort) throws IOException {
3636
}
3737
}
3838

39-
@JoobyTest(value = TestArgApp.class, factoryMethod = "createApp")
39+
@JoobyTest(value = TestArgApp.class, factoryMethod = "createApp", port = 0)
4040
public void shouldUseFactoryMethod(int serverPort) throws IOException {
4141
Request request = new Request.Builder().url("http://localhost:" + serverPort + "/").build();
4242

0 commit comments

Comments
 (0)