Skip to content

Commit f7529cc

Browse files
Christoph Büscherdanielmitterdorfer
Christoph Büscher
authored andcommitted
[Tests] Nudge wait time in RemoteClusterServiceTests (#33853)
This test occasionally fails in `testCollectSearchShards` waiting on what seems to be a search request to a remote cluster for one second. Given that the test fails here very rarely I suspect maybe one second is very rarely not enough so we could fix it by increasing the max wait time slightly. Closes #33852
1 parent cafdc9d commit f7529cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/transport/RemoteClusterServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ public void testCollectSearchShards() throws Exception {
566566
remoteClusterService.collectSearchShards(IndicesOptions.lenientExpandOpen(), "index_not_found",
567567
null, remoteIndicesByCluster,
568568
new LatchedActionListener<>(ActionListener.wrap(response::set, failure::set), latch));
569-
assertTrue(latch.await(1, TimeUnit.SECONDS));
569+
assertTrue(latch.await(2, TimeUnit.SECONDS));
570570
assertNull(response.get());
571571
assertNotNull(failure.get());
572572
assertThat(failure.get(), instanceOf(RemoteTransportException.class));

0 commit comments

Comments
 (0)