Skip to content

Commit

Permalink
Fix NormalizerAgg test searcher wrapping
Browse files Browse the repository at this point in the history
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 elastic#57164
  • Loading branch information
talevy committed May 26, 2020
1 parent 7fca5e1 commit 9f63841
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void testCase(ValuesSourceAggregationBuilder<?> aggBuilder, Consumer<Int
termFieldType.setHasDocValues(true);

try (IndexReader indexReader = DirectoryReader.open(directory)) {
IndexSearcher indexSearcher = newSearcher(indexReader, true, true);
IndexSearcher indexSearcher = newSearcher(indexReader, false, true);
InternalAggregation internalAggregation = searchAndReduce(indexSearcher, query, aggBuilder, dateFieldType,
valueFieldType, termFieldType);
aggAssertion.accept(internalAggregation);
Expand Down

0 comments on commit 9f63841

Please sign in to comment.