diff --git a/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoHashGridTests.java b/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoHashGridTests.java index 3c033cac675..5897045d2e2 100644 --- a/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoHashGridTests.java +++ b/src/test/java/org/elasticsearch/search/aggregations/bucket/GeoHashGridTests.java @@ -101,6 +101,7 @@ public class GeoHashGridTests extends ElasticsearchIntegrationTest { } } indexRandom(true, cities); + ensureSearchable(); } @@ -166,9 +167,6 @@ public class GeoHashGridTests extends ElasticsearchIntegrationTest { @Test public void unmapped() throws Exception { - client().admin().cluster().prepareHealth("idx_unmapped").setWaitForYellowStatus().execute().actionGet(); - - for (int precision = 1; precision <= highestPrecisionGeohash; precision++) { SearchResponse response = client().prepareSearch("idx_unmapped") .addAggregation(geohashGrid("geohashgrid")