Skip to content

Commit 20641af

Browse files
time unit change
1 parent e3d7d0e commit 20641af

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/TaskExecutionTimeTrackingEsThreadPoolExecutorTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ public void testFrontOfQueueLatency() throws Exception {
104104
// waiting for task execution to begin via the supplied barrier.
105105
var adjustableTimedRunnable = new AdjustableQueueTimeWithExecutionBarrierTimedRunnable(
106106
barrier,
107-
// This won't actually be used, because it is reported when a task is taken off the queue. This test peeks at the still queued
107+
// This won't actually be used, because it is reported after a task is taken off the queue. This test peeks at the still queued
108108
// tasks.
109-
TimeUnit.NANOSECONDS.toNanos(1_000_000)
109+
TimeUnit.MILLISECONDS.toNanos(1)
110110
);
111111
TaskExecutionTimeTrackingEsThreadPoolExecutor executor = new TaskExecutionTimeTrackingEsThreadPoolExecutor(
112112
"test-threadpool",

0 commit comments

Comments
 (0)