Relax ReindexIT test timeouts (#46312)

A couple of tests used 2 second timeout, which was prone to failure,
increased to 10 seconds.

Closes #46301
This commit is contained in:
Henning Andersen 2019-09-16 09:29:18 +02:00 committed by Henning Andersen
parent 2b85dcb201
commit c99adfb99a
1 changed files with 2 additions and 2 deletions

View File

@ -292,7 +292,7 @@ public class ReindexIT extends ESRestHighLevelClientTestCase {
assertThat(response.getTasks().get(0).getStatus(), instanceOf(RawTaskStatus.class));
assertEquals(Float.toString(requestsPerSecond),
((RawTaskStatus) response.getTasks().get(0).getStatus()).toMap().get("requests_per_second").toString());
taskFinished.await(2, TimeUnit.SECONDS);
assertTrue(taskFinished.await(10, TimeUnit.SECONDS));
// any rethrottling after the update-by-query is done performed with the same taskId should result in a failure
response = execute(new RethrottleRequest(taskIdToRethrottle, requestsPerSecond),
@ -423,7 +423,7 @@ public class ReindexIT extends ESRestHighLevelClientTestCase {
assertThat(response.getTasks().get(0).getStatus(), instanceOf(RawTaskStatus.class));
assertEquals(Float.toString(requestsPerSecond),
((RawTaskStatus) response.getTasks().get(0).getStatus()).toMap().get("requests_per_second").toString());
taskFinished.await(2, TimeUnit.SECONDS);
assertTrue(taskFinished.await(10, TimeUnit.SECONDS));
// any rethrottling after the delete-by-query is done performed with the same taskId should result in a failure
response = execute(new RethrottleRequest(taskIdToRethrottle, requestsPerSecond),