Skip to content

Commit b460a83

Browse files
committed
finish adding bulk of tests
Signed-off-by: Anthony Leong <aj.leong623@gmail.com>
1 parent f12a3a5 commit b460a83

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

test/framework/src/main/java/org/opensearch/search/aggregations/AggregatorTestCase.java

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,15 @@ protected SearchContext createSearchContext(
419419
MultiBucketConsumer bucketConsumer,
420420
MappedFieldType... fieldTypes
421421
) throws IOException {
422-
return createSearchContext(shouldProfile, indexSearcher, indexSettings, query, bucketConsumer, new NoneCircuitBreakerService(), fieldTypes);
422+
return createSearchContext(
423+
shouldProfile,
424+
indexSearcher,
425+
indexSettings,
426+
query,
427+
bucketConsumer,
428+
new NoneCircuitBreakerService(),
429+
fieldTypes
430+
);
423431
}
424432

425433
protected SearchContext createSearchContextWithStarTreeContext(
@@ -1087,7 +1095,10 @@ protected <A extends InternalAggregation, C extends Aggregator> A searchAndReduc
10871095
searchContext = createSearchContext(true, searcher, indexSettings, query, bucketConsumer, fieldTypes);
10881096
}
10891097

1090-
CountingAggregator countingAggregator = new CountingAggregator(new AtomicInteger(), new ProfilingAggregator(createAggregator(builder, searchContext), searchContext.getProfilers().getAggregationProfiler()));
1098+
CountingAggregator countingAggregator = new CountingAggregator(
1099+
new AtomicInteger(),
1100+
new ProfilingAggregator(createAggregator(builder, searchContext), searchContext.getProfilers().getAggregationProfiler())
1101+
);
10911102

10921103
countingAggregator.preCollection();
10931104
searcher.search(query, countingAggregator);

0 commit comments

Comments
 (0)