add more ensureGreen to aggs tests

This commit is contained in:
Simon Willnauer 2013-12-01 18:58:29 +01:00
parent 04675f85cf
commit d2bd476e70
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ public class FilterTests extends ElasticsearchIntegrationTest {
.endObject()));
}
indexRandom(true, builders.toArray(new IndexRequestBuilder[builders.size()]));
ensureGreen();
}
@Test

View File

@ -61,6 +61,7 @@ public class ValueCountTests extends ElasticsearchIntegrationTest {
}
client().admin().indices().prepareFlush().execute().actionGet();
client().admin().indices().prepareRefresh().execute().actionGet();
ensureGreen();
}
@Test