[Tests] Fix RetryHttpInitializerWrapperTests.testIOExceptionRetry
This commit gives more time to the IO exception handler to retry the request.
This commit is contained in:
parent
b5d9774c65
commit
9485b43167
|
@ -160,7 +160,7 @@ public class RetryHttpInitializerWrapperTests extends ESTestCase {
|
||||||
.build();
|
.build();
|
||||||
MockSleeper mockSleeper = new MockSleeper();
|
MockSleeper mockSleeper = new MockSleeper();
|
||||||
RetryHttpInitializerWrapper retryHttpInitializerWrapper = new RetryHttpInitializerWrapper(credential, mockSleeper,
|
RetryHttpInitializerWrapper retryHttpInitializerWrapper = new RetryHttpInitializerWrapper(credential, mockSleeper,
|
||||||
TimeValue.timeValueMillis(500));
|
TimeValue.timeValueSeconds(30L));
|
||||||
|
|
||||||
Compute client = new Compute.Builder(fakeTransport, new JacksonFactory(), null)
|
Compute client = new Compute.Builder(fakeTransport, new JacksonFactory(), null)
|
||||||
.setHttpRequestInitializer(retryHttpInitializerWrapper)
|
.setHttpRequestInitializer(retryHttpInitializerWrapper)
|
||||||
|
|
Loading…
Reference in New Issue