Skip to content

Commit 2cc7686

Browse files
Increase Timeout in WaitForRefreshAndCloseIT
The test cluster took slightly more than 10s to apply the cluster state for the mapping update randomly which failed the run in elastic#75941. This only ever failed once but since there's no real harm in doing so increasing the timeout to 30s here like we did in other similar spots. closes elastic#75941
1 parent 63ada76 commit 2cc7686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/archives/integ-test-zip/src/test/java/org/elasticsearch/test/rest/WaitForRefreshAndCloseIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private void closeWhileListenerEngaged(ActionFuture<String> future) throws Excep
8383
Map<?, ?> refresh = (Map<?, ?>) total.get("refresh");
8484
int listeners = (Integer) refresh.get("listeners");
8585
assertEquals(1, listeners);
86-
});
86+
}, 30L, TimeUnit.SECONDS);
8787

8888
// Close the index. That should flush the listener.
8989
client().performRequest(new Request("POST", "/test/_close"));

0 commit comments

Comments
 (0)