diff --git a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPostTest.java b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPostTest.java index 50866bc85c..0896f9cf50 100644 --- a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPostTest.java +++ b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPostTest.java @@ -15,6 +15,7 @@ */ package io.fabric8.kubernetes.client.http; +import io.fabric8.kubernetes.client.RequestConfigBuilder; import io.fabric8.mockwebserver.DefaultMockServer; import io.fabric8.mockwebserver.http.RecordedRequest; import org.junit.jupiter.api.AfterAll; @@ -161,7 +162,8 @@ public void expectContinue() throws Exception { public void expectFailure() throws IOException, URISyntaxException { try (final ServerSocket serverSocket = new ServerSocket(0)) { - try (HttpClient client = getHttpClientFactory().newBuilder().build()) { + try (HttpClient client = getHttpClientFactory().newBuilder() + .tag(new RequestConfigBuilder().withRequestRetryBackoffLimit(0).build()).build()) { final URI uri = uriForPath(serverSocket, "/post-failing"); serverSocket.close(); diff --git a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPutTest.java b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPutTest.java index 9bcbae7187..d902786a51 100644 --- a/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPutTest.java +++ b/kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http/AbstractHttpPutTest.java @@ -15,6 +15,7 @@ */ package io.fabric8.kubernetes.client.http; +import io.fabric8.kubernetes.client.RequestConfigBuilder; import io.fabric8.mockwebserver.DefaultMockServer; import io.fabric8.mockwebserver.http.RecordedRequest; import org.junit.jupiter.api.AfterAll; @@ -97,7 +98,8 @@ public void putInputStreamBody() throws Exception { public void expectFailure() throws IOException, URISyntaxException { try (final ServerSocket serverSocket = new ServerSocket(0)) { - try (HttpClient client = getHttpClientFactory().newBuilder().build()) { + try (HttpClient client = getHttpClientFactory().newBuilder() + .tag(new RequestConfigBuilder().withRequestRetryBackoffLimit(0).build()).build()) { final URI uri = uriForPath(serverSocket, "/put-failing"); serverSocket.close();