Skip to content

Commit

Permalink
Use longer server start-up timeout; use random port for test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjquinno committed Aug 3, 2021
1 parent ae3027c commit 6e82a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ static Single<WebServer> startServer() {
// Get webserver config from the "server" section of application.yaml
WebServer server = WebServer.builder(createRouting(config))
.config(config.get("server"))
.port(-1)
.addMediaSupport(JsonpSupport.create())
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class MainTest {
@BeforeAll
public static void startTheServer() {
webServer = Main.startServer()
.await(2, TimeUnit.SECONDS);
.await(10, TimeUnit.SECONDS);

webClient = WebClient.builder()
.baseUri("http://localhost:" + webServer.port())
Expand Down

0 comments on commit 6e82a3c

Please sign in to comment.