Skip to content

Commit

Permalink
Use a random port in tests
Browse files Browse the repository at this point in the history
listen() is on 80 while listen(0) is random.
  • Loading branch information
jponge committed Nov 8, 2024
1 parent 02e911d commit 49bee51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void httpAssertion() {
.setStatusCode(200)
.putHeader("content-type", "text/plain")
.endAndForget("Yolo"))
.listen()
.listen(0)
.await().atMost(Duration.ofSeconds(30));

int port = server.actualPort();
Expand Down

0 comments on commit 49bee51

Please sign in to comment.