Skip to content

Commit

Permalink
fix fabric8io#4201: adding missing test timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
shawkins committed Nov 22, 2022
1 parent c741a07 commit e3db5f4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void testWebsocketHandshakeFailure() {

assertThrows(WebSocketHandshakeException.class, () -> {
try {
startedFuture.get();
startedFuture.get(10, TimeUnit.SECONDS);
} catch (ExecutionException e) {
throw e.getCause();
}
Expand Down Expand Up @@ -144,7 +144,7 @@ public void onMessage(WebSocket webSocket, String text) {
assertFalse(latch.await(10, TimeUnit.SECONDS));
assertEquals(1, latch.getCount());

startedFuture.get().request();
startedFuture.get(10, TimeUnit.SECONDS).request();

assertTrue(latch.await(10, TimeUnit.SECONDS));
}
Expand Down

0 comments on commit e3db5f4

Please sign in to comment.