Fix NormalizerAgg test searcher wrapping (#57171)

The searcher was randomly wrapping its reader as slow, parallel, or filtered.
This was causing casting issues in the normalizer tests. By removing the
wrapping, the problem goes away.

Closes #57164
This commit is contained in:
Tal Levy 2020-05-26 13:10:32 -07:00 committed by Tal Levy
parent 41629b7bfd
commit 81060820e9
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class NormalizeAggregatorTests extends AggregatorTestCase {
termFieldType.setHasDocValues(true);
try (IndexReader indexReader = DirectoryReader.open(directory)) {
IndexSearcher indexSearcher = newSearcher(indexReader, true, true);
IndexSearcher indexSearcher = newIndexSearcher(indexReader);
InternalAggregation internalAggregation = searchAndReduce(indexSearcher, query, aggBuilder, dateFieldType,
valueFieldType, termFieldType);
aggAssertion.accept(internalAggregation);