Skip to content

Commit

Permalink
[Tests] Fix randomization in StringTermsIT (#33678)
Browse files Browse the repository at this point in the history
It looks like the COLLECT_SEGMENT_ORDS flag should be randomized.
  • Loading branch information
Christoph Büscher authored Sep 14, 2018
1 parent d9f5e4f commit bcbbbdf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
import org.elasticsearch.search.aggregations.bucket.filter.Filter;
import org.elasticsearch.search.aggregations.bucket.terms.Terms.Bucket;
import org.elasticsearch.search.aggregations.metrics.Avg;
import org.elasticsearch.search.aggregations.metrics.Stats;
import org.elasticsearch.search.aggregations.metrics.ExtendedStats;
import org.elasticsearch.search.aggregations.metrics.Stats;
import org.elasticsearch.search.aggregations.metrics.Sum;
import org.elasticsearch.test.ESIntegTestCase;
import org.hamcrest.Matchers;
Expand Down Expand Up @@ -87,7 +87,7 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {

@Before
public void randomizeOptimizations() {
TermsAggregatorFactory.COLLECT_SEGMENT_ORDS = false;randomBoolean();
TermsAggregatorFactory.COLLECT_SEGMENT_ORDS = randomBoolean();
TermsAggregatorFactory.REMAP_GLOBAL_ORDS = randomBoolean();
}

Expand Down

0 comments on commit bcbbbdf

Please sign in to comment.