Browse Source

[TEST] bump timeout in testFetchShardsSkipUnavailable to 5s

in response to #28668.
Tal Levy 7 years ago
parent
commit
6c7d12c34c

+ 1 - 1
server/src/test/java/org/elasticsearch/transport/RemoteClusterConnectionTests.java

@@ -480,7 +480,7 @@ public class RemoteClusterConnectionTests extends ESTestCase {
                         AtomicReference<Exception> failReference = new AtomicReference<>();
                         connection.fetchSearchShards(searchShardsRequest,
                                 new LatchedActionListener<>(ActionListener.wrap(reference::set, failReference::set), responseLatch));
-                        assertTrue(responseLatch.await(1, TimeUnit.SECONDS));
+                        assertTrue(responseLatch.await(5, TimeUnit.SECONDS));
                         assertNull(failReference.get());
                         assertNotNull(reference.get());
                         ClusterSearchShardsResponse response = reference.get();