From c6c11127b3630c17f9abd915901e6cf603a239df Mon Sep 17 00:00:00 2001 From: Sandesh Kumar Date: Thu, 22 Feb 2024 22:21:28 -0800 Subject: [PATCH] refactor Signed-off-by: Sandesh Kumar --- .../search/aggregations/bucket/terms/TermsAggregatorTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java index c2d27fbf3600e..51dc53bba4f02 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/terms/TermsAggregatorTests.java @@ -154,7 +154,7 @@ public class TermsAggregatorTests extends AggregatorTestCase { // aggregator.postCollection() is not required when LeafBucketCollector#termDocFreqCollector optimization is used. // using NOOP_POST_COLLECTION_CONSUMER ensures that the bucket count in aggregation is completed before/without running postCollection() - private static final Consumer NOOP_POST_COLLECTION_CONSUMER = termsAggregator -> {}; + private static final Consumer NOOP_POST_COLLECTION = termsAggregator -> {}; @Override protected MapperService mapperServiceMock() {