Skip to content

Commit

Permalink
test: make testWebsocketClientClose more reliable for async environments
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa committed Jan 6, 2024
1 parent f32e7cc commit 58898be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void testWebsocketClientClose() throws InterruptedException, ExecutionException,
server.expect().withPath("/wsclose")
.andUpgradeToWebSocket()
.open()
.expect("never sent").andEmit("response").always().done().always();
.waitFor(100L).andEmit("response").done().always();

CompletableFuture<String> closeReason = new CompletableFuture<>();

Expand Down

0 comments on commit 58898be

Please sign in to comment.