Skip to content

Commit ad03ad6

Browse files
authored
[7.17] Increase interval for task change interval check to prevent stalls failing the test (#94145) (#108667)
Backport #94145 to 7.17
1 parent 101bebe commit ad03ad6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/common/util/concurrent/AbstractAsyncTaskTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ protected void runInternal() {
187187
assertFalse(task.isScheduled());
188188
task.rescheduleIfNecessary();
189189
assertTrue(task.isScheduled());
190-
task.setInterval(TimeValue.timeValueMillis(1));
190+
task.setInterval(TimeValue.timeValueMillis(10));
191191
assertTrue(task.isScheduled());
192-
// This should only take 2 milliseconds in ideal conditions, but allow 10 seconds in case of VM stalls
192+
// This should only take 20 milliseconds in ideal conditions, but allow 10 seconds in case of VM stalls
193193
assertTrue(latch.await(10, TimeUnit.SECONDS));
194194
assertBusy(() -> assertFalse(task.isScheduled()));
195195
task.close();

0 commit comments

Comments
 (0)