Skip to content

Commit f942332

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 7ded14f commit f942332

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,7 @@ public void testMaxQueueLatency() throws Exception {
117117

118118
// Check that the max is zero initially and after a reset.
119119
assertEquals("The queue latency should be initialized zero", 0, executor.getMaxQueueLatencyMillisSinceLastPollAndReset());
120-
executor.execute(() -> {
121-
});
120+
executor.execute(() -> {});
122121
safeAwait(barrier); // Wait for the task to start, which means implies has finished the queuing stage.
123122
assertEquals("Ran one task of 1ms, should be the max", 1, executor.getMaxQueueLatencyMillisSinceLastPollAndReset());
124123
assertEquals("The max was just reset, should be zero", 0, executor.getMaxQueueLatencyMillisSinceLastPollAndReset());

0 commit comments

Comments
 (0)