diff --git a/httpclient-tests/src/test/java/io/fabric8/kubernetes/client/http/OkHttpClientTest.java b/httpclient-tests/src/test/java/io/fabric8/kubernetes/client/http/OkHttpClientTest.java index c2210610b24..e328b5f0e34 100644 --- a/httpclient-tests/src/test/java/io/fabric8/kubernetes/client/http/OkHttpClientTest.java +++ b/httpclient-tests/src/test/java/io/fabric8/kubernetes/client/http/OkHttpClientTest.java @@ -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 closeReason = new CompletableFuture<>();