Tests: Fix test bug in aggregations' EquivalenceTests due to the change of the default min_doc_count.

This commit is contained in:
Adrien Grand 2015-04-30 19:14:56 +02:00
parent 7a6fe809d0
commit 12c19508fb
1 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,6 @@ import org.elasticsearch.search.aggregations.bucket.terms.TermsAggregatorFactory
import org.elasticsearch.search.aggregations.metrics.sum.Sum;
import org.elasticsearch.test.ElasticsearchIntegrationTest;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@ -303,7 +302,7 @@ public class EquivalenceTests extends ElasticsearchIntegrationTest {
SearchResponse resp = client().prepareSearch("idx")
.addAggregation(terms("terms").field("values").collectMode(randomFrom(SubAggCollectionMode.values())).script("floor(_value / interval)").param("interval", interval).size(maxNumTerms))
.addAggregation(histogram("histo").field("values").interval(interval))
.addAggregation(histogram("histo").field("values").interval(interval).minDocCount(1))
.execute().actionGet();
assertSearchResponse(resp);