diff --git a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractSimultaneousConnectionsTest.java b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractSimultaneousConnectionsTest.java index 69d346eda4..998233f952 100644 --- a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractSimultaneousConnectionsTest.java +++ b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractSimultaneousConnectionsTest.java @@ -96,7 +96,10 @@ private void withHttp1() { @DisabledOnOs(OS.WINDOWS) public void http1Connections() throws Exception { final DelayedResponseHandler handler = new DelayedResponseHandler(MAX_HTTP_1_CONNECTIONS, - exchange -> exchange.sendResponseHeaders(204, -1)); + exchange -> { + exchange.sendResponseHeaders(204, -1); + exchange.close(); + }); httpServer.createContext("/http", handler); try (final HttpClient client = clientBuilder.build()) { final Collection>> asyncResponses = ConcurrentHashMap.newKeySet();