Skip to content

Commit ae721e0

Browse files
Fix testMaxQueueLatency bug
Cannot expect thread pool task to have completed because the test only asserts that the task has started execution Closes #131093
1 parent bbc4cef commit ae721e0

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,9 +558,6 @@ tests:
558558
- class: org.elasticsearch.xpack.esql.action.EsqlActionBreakerIT
559559
method: testRowStatsProjectGroupByInt
560560
issue: https://github.com/elastic/elasticsearch/issues/131024
561-
- class: org.elasticsearch.common.util.concurrent.TaskExecutionTimeTrackingEsThreadPoolExecutorTests
562-
method: testMaxQueueLatency
563-
issue: https://github.com/elastic/elasticsearch/issues/131093
564561

565562
# Examples:
566563
#

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public void testMaxQueueLatency() throws Exception {
133133
assertEquals("The max was just reset, should be zero", 0, executor.getMaxQueueLatencyMillisSinceLastPollAndReset());
134134
} finally {
135135
// Clean up.
136-
assertThat(executor.getOngoingTasks().toString(), executor.getOngoingTasks().size(), equalTo(0));
137136
executor.shutdown();
138137
executor.awaitTermination(10, TimeUnit.SECONDS);
139138
}

0 commit comments

Comments
 (0)