From cbee038e09df1845845ee1843c03009ad540bd76 Mon Sep 17 00:00:00 2001 From: Sam Barker Date: Mon, 22 Jul 2024 13:27:24 +1200 Subject: [PATCH] Fixes afterConnectionFailure tests for JettyHttpClient. --- .../kubernetes/client/jetty/JettyAsyncResponseListener.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/httpclient-jetty/src/main/java/io/fabric8/kubernetes/client/jetty/JettyAsyncResponseListener.java b/httpclient-jetty/src/main/java/io/fabric8/kubernetes/client/jetty/JettyAsyncResponseListener.java index c2e88b2ca2d..3e41a791645 100644 --- a/httpclient-jetty/src/main/java/io/fabric8/kubernetes/client/jetty/JettyAsyncResponseListener.java +++ b/httpclient-jetty/src/main/java/io/fabric8/kubernetes/client/jetty/JettyAsyncResponseListener.java @@ -103,6 +103,11 @@ public void onContent(Response response, ByteBuffer content, Callback callback) } } + @Override + public void onFailure(Response response, Throwable failure) { + asyncResponse.completeExceptionally(failure); + } + /** * Implement to consume the content of the chunked response. *