File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1515 */
1616package io .fabric8 .kubernetes .client .http ;
1717
18+ import io .fabric8 .kubernetes .client .RequestConfigBuilder ;
1819import io .fabric8 .mockwebserver .DefaultMockServer ;
1920import io .fabric8 .mockwebserver .http .RecordedRequest ;
2021import org .junit .jupiter .api .AfterAll ;
@@ -161,7 +162,8 @@ public void expectContinue() throws Exception {
161162 public void expectFailure () throws IOException , URISyntaxException {
162163 try (final ServerSocket serverSocket = new ServerSocket (0 )) {
163164
164- try (HttpClient client = getHttpClientFactory ().newBuilder ().build ()) {
165+ try (HttpClient client = getHttpClientFactory ().newBuilder ()
166+ .tag (new RequestConfigBuilder ().withRequestRetryBackoffLimit (0 ).build ()).build ()) {
165167 final URI uri = uriForPath (serverSocket , "/post-failing" );
166168 serverSocket .close ();
167169
Original file line number Diff line number Diff line change 1515 */
1616package io .fabric8 .kubernetes .client .http ;
1717
18+ import io .fabric8 .kubernetes .client .RequestConfigBuilder ;
1819import io .fabric8 .mockwebserver .DefaultMockServer ;
1920import io .fabric8 .mockwebserver .http .RecordedRequest ;
2021import org .junit .jupiter .api .AfterAll ;
@@ -97,7 +98,8 @@ public void putInputStreamBody() throws Exception {
9798 public void expectFailure () throws IOException , URISyntaxException {
9899 try (final ServerSocket serverSocket = new ServerSocket (0 )) {
99100
100- try (HttpClient client = getHttpClientFactory ().newBuilder ().build ()) {
101+ try (HttpClient client = getHttpClientFactory ().newBuilder ()
102+ .tag (new RequestConfigBuilder ().withRequestRetryBackoffLimit (0 ).build ()).build ()) {
101103 final URI uri = uriForPath (serverSocket , "/put-failing" );
102104 serverSocket .close ();
103105
You can’t perform that action at this time.
0 commit comments