Skip to content

Commit

Permalink
Increase Timeout in WaitForRefreshAndCloseIT (elastic#76078)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
original-brownbear authored Aug 4, 2021
1 parent 39ee788 commit 40bdde1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ private void closeWhileListenerEngaged(ActionFuture<String> future) throws Excep
Map<?, ?> refresh = (Map<?, ?>) total.get("refresh");
int listeners = (Integer) refresh.get("listeners");
assertEquals(1, listeners);
});
}, 30L, TimeUnit.SECONDS);

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

0 comments on commit 40bdde1

Please sign in to comment.