move to ensureGreen in aggs tests to stabelize tests

This commit is contained in:
Simon Willnauer 2013-12-09 21:50:24 +01:00
parent 5771f9083c
commit 2dfb1d98f4
2 changed files with 2 additions and 3 deletions

View File

@ -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"))

View File

@ -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);
}
/**