From 6aa1076a15fdcfa4969e3bcc75e0427e832b5e29 Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Mon, 16 Dec 2024 18:24:29 +0100 Subject: [PATCH] test: set content length = 0 in abstract simultaneous connections test Signed-off-by: Marc Nuri --- .../client/http/AbstractSimultaneousConnectionsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..d06a7bc58e 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,7 @@ 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, 0)); httpServer.createContext("/http", handler); try (final HttpClient client = clientBuilder.build()) { final Collection>> asyncResponses = ConcurrentHashMap.newKeySet();