Skip to content

Commit 7b67417

Browse files
Relax ReindexIT test timeouts (#46312)
A couple of tests used 2 second timeout, which was prone to failure, increased to 10 seconds. Closes #46301
1 parent 0893e55 commit 7b67417

File tree

1 file changed

+2
-2
lines changed
  • client/rest-high-level/src/test/java/org/elasticsearch/client

1 file changed

+2
-2
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/ReindexIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public void onFailure(Exception e) {
292292
assertThat(response.getTasks().get(0).getStatus(), instanceOf(RawTaskStatus.class));
293293
assertEquals(Float.toString(requestsPerSecond),
294294
((RawTaskStatus) response.getTasks().get(0).getStatus()).toMap().get("requests_per_second").toString());
295-
taskFinished.await(2, TimeUnit.SECONDS);
295+
assertTrue(taskFinished.await(10, TimeUnit.SECONDS));
296296

297297
// any rethrottling after the update-by-query is done performed with the same taskId should result in a failure
298298
response = execute(new RethrottleRequest(taskIdToRethrottle, requestsPerSecond),
@@ -423,7 +423,7 @@ public void onFailure(Exception e) {
423423
assertThat(response.getTasks().get(0).getStatus(), instanceOf(RawTaskStatus.class));
424424
assertEquals(Float.toString(requestsPerSecond),
425425
((RawTaskStatus) response.getTasks().get(0).getStatus()).toMap().get("requests_per_second").toString());
426-
taskFinished.await(2, TimeUnit.SECONDS);
426+
assertTrue(taskFinished.await(10, TimeUnit.SECONDS));
427427

428428
// any rethrottling after the delete-by-query is done performed with the same taskId should result in a failure
429429
response = execute(new RethrottleRequest(taskIdToRethrottle, requestsPerSecond),

0 commit comments

Comments
 (0)