move to ensureGreen in aggs tests to stabelize tests
This commit is contained in:
parent
5771f9083c
commit
2dfb1d98f4
|
@ -61,12 +61,11 @@ public class ValueCountTests extends ElasticsearchIntegrationTest {
|
|||
}
|
||||
client().admin().indices().prepareFlush().execute().actionGet();
|
||||
client().admin().indices().prepareRefresh().execute().actionGet();
|
||||
ensureSearchable();
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestLogging("search:TRACE")
|
||||
public void unmapped() throws Exception {
|
||||
|
||||
SearchResponse searchResponse = client().prepareSearch("idx_unmapped")
|
||||
.setQuery(matchAllQuery())
|
||||
.addAggregation(count("count").field("value"))
|
||||
|
|
|
@ -497,7 +497,7 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
|
|||
*/
|
||||
protected ClusterHealthStatus ensureSearchable(String...indices) {
|
||||
// this is just a temporary thing but it's easier to change if it is encapsulated.
|
||||
return ensureYellow(indices);
|
||||
return ensureGreen(indices);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue