From 9485b43167281c8c09a69ea2eeaee2125c000167 Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Tue, 20 Feb 2018 14:54:53 +0100 Subject: [PATCH] [Tests] Fix RetryHttpInitializerWrapperTests.testIOExceptionRetry This commit gives more time to the IO exception handler to retry the request. --- .../discovery/gce/RetryHttpInitializerWrapperTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discovery-gce/src/test/java/org/elasticsearch/discovery/gce/RetryHttpInitializerWrapperTests.java b/plugins/discovery-gce/src/test/java/org/elasticsearch/discovery/gce/RetryHttpInitializerWrapperTests.java index a49124749fe..4aad3737d30 100644 --- a/plugins/discovery-gce/src/test/java/org/elasticsearch/discovery/gce/RetryHttpInitializerWrapperTests.java +++ b/plugins/discovery-gce/src/test/java/org/elasticsearch/discovery/gce/RetryHttpInitializerWrapperTests.java @@ -160,7 +160,7 @@ public class RetryHttpInitializerWrapperTests extends ESTestCase { .build(); MockSleeper mockSleeper = new MockSleeper(); RetryHttpInitializerWrapper retryHttpInitializerWrapper = new RetryHttpInitializerWrapper(credential, mockSleeper, - TimeValue.timeValueMillis(500)); + TimeValue.timeValueSeconds(30L)); Compute client = new Compute.Builder(fakeTransport, new JacksonFactory(), null) .setHttpRequestInitializer(retryHttpInitializerWrapper)