[TEST] bump timeout in testFetchShardsSkipUnavailable to 5s
in response to #28668.
This commit is contained in:
parent
04fe9a9ab5
commit
6c7d12c34c
|
@ -480,7 +480,7 @@ public class RemoteClusterConnectionTests extends ESTestCase {
|
||||||
AtomicReference<Exception> failReference = new AtomicReference<>();
|
AtomicReference<Exception> failReference = new AtomicReference<>();
|
||||||
connection.fetchSearchShards(searchShardsRequest,
|
connection.fetchSearchShards(searchShardsRequest,
|
||||||
new LatchedActionListener<>(ActionListener.wrap(reference::set, failReference::set), responseLatch));
|
new LatchedActionListener<>(ActionListener.wrap(reference::set, failReference::set), responseLatch));
|
||||||
assertTrue(responseLatch.await(1, TimeUnit.SECONDS));
|
assertTrue(responseLatch.await(5, TimeUnit.SECONDS));
|
||||||
assertNull(failReference.get());
|
assertNull(failReference.get());
|
||||||
assertNotNull(reference.get());
|
assertNotNull(reference.get());
|
||||||
ClusterSearchShardsResponse response = reference.get();
|
ClusterSearchShardsResponse response = reference.get();
|
||||||
|
|
Loading…
Reference in New Issue