File tree 2 files changed +6
-2
lines changed
kubernetes-client-api/src/test/java/io/fabric8/kubernetes/client/http
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
*/
16
16
package io .fabric8 .kubernetes .client .http ;
17
17
18
+ import io .fabric8 .kubernetes .client .RequestConfigBuilder ;
18
19
import io .fabric8 .mockwebserver .DefaultMockServer ;
19
20
import io .fabric8 .mockwebserver .http .RecordedRequest ;
20
21
import org .junit .jupiter .api .AfterAll ;
@@ -161,7 +162,8 @@ public void expectContinue() throws Exception {
161
162
public void expectFailure () throws IOException , URISyntaxException {
162
163
try (final ServerSocket serverSocket = new ServerSocket (0 )) {
163
164
164
- try (HttpClient client = getHttpClientFactory ().newBuilder ().build ()) {
165
+ try (HttpClient client = getHttpClientFactory ().newBuilder ()
166
+ .tag (new RequestConfigBuilder ().withRequestRetryBackoffLimit (0 ).build ()).build ()) {
165
167
final URI uri = uriForPath (serverSocket , "/post-failing" );
166
168
serverSocket .close ();
167
169
Original file line number Diff line number Diff line change 15
15
*/
16
16
package io .fabric8 .kubernetes .client .http ;
17
17
18
+ import io .fabric8 .kubernetes .client .RequestConfigBuilder ;
18
19
import io .fabric8 .mockwebserver .DefaultMockServer ;
19
20
import io .fabric8 .mockwebserver .http .RecordedRequest ;
20
21
import org .junit .jupiter .api .AfterAll ;
@@ -97,7 +98,8 @@ public void putInputStreamBody() throws Exception {
97
98
public void expectFailure () throws IOException , URISyntaxException {
98
99
try (final ServerSocket serverSocket = new ServerSocket (0 )) {
99
100
100
- try (HttpClient client = getHttpClientFactory ().newBuilder ().build ()) {
101
+ try (HttpClient client = getHttpClientFactory ().newBuilder ()
102
+ .tag (new RequestConfigBuilder ().withRequestRetryBackoffLimit (0 ).build ()).build ()) {
101
103
final URI uri = uriForPath (serverSocket , "/put-failing" );
102
104
serverSocket .close ();
103
105
You can’t perform that action at this time.
0 commit comments