added more wait for green status on aggs tests

This commit is contained in:
uboness 2013-12-02 11:42:35 +01:00
parent a1d58bf486
commit 2f835621ae
1 changed files with 1 additions and 1 deletions

View File

@ -807,7 +807,7 @@ public class DateHistogramTests extends ElasticsearchIntegrationTest {
@Test
public void unmapped() throws Exception {
client().admin().cluster().prepareHealth("idx_unmapped").setWaitForYellowStatus().execute().actionGet();
client().admin().cluster().prepareHealth("idx_unmapped").setWaitForGreenStatus().execute().actionGet();
SearchResponse response = client().prepareSearch("idx_unmapped")
.addAggregation(dateHistogram("histo").field("date").interval(DateHistogram.Interval.MONTH))