diff --git a/server/src/test/java/org/opensearch/search/backpressure/SearchBackpressureServiceTests.java b/server/src/test/java/org/opensearch/search/backpressure/SearchBackpressureServiceTests.java index d5194df5dfb41..26ec76d5b7f50 100644 --- a/server/src/test/java/org/opensearch/search/backpressure/SearchBackpressureServiceTests.java +++ b/server/src/test/java/org/opensearch/search/backpressure/SearchBackpressureServiceTests.java @@ -469,7 +469,6 @@ public void testNonCancellationOfHeapBasedTasksWhenHeapNotInDuress() { new SearchTaskStats( 5, 1, - 0, Map.of( TaskResourceUsageTrackerType.CPU_USAGE_TRACKER, new MockStats(5), @@ -477,7 +476,7 @@ public void testNonCancellationOfHeapBasedTasksWhenHeapNotInDuress() { new MockStats(0) ) ), - new SearchShardTaskStats(0, 0, 0, Collections.emptyMap()), + new SearchShardTaskStats(0, 0, Collections.emptyMap()), SearchBackpressureMode.ENFORCED );