Use #ensureSearchable() in GeoHashGridTests

This commit is contained in:
Simon Willnauer 2014-01-28 15:11:49 +01:00
parent 25f0bba30c
commit f9d1552282
1 changed files with 1 additions and 3 deletions

View File

@ -101,6 +101,7 @@ public class GeoHashGridTests extends ElasticsearchIntegrationTest {
} }
} }
indexRandom(true, cities); indexRandom(true, cities);
ensureSearchable();
} }
@ -166,9 +167,6 @@ public class GeoHashGridTests extends ElasticsearchIntegrationTest {
@Test @Test
public void unmapped() throws Exception { public void unmapped() throws Exception {
client().admin().cluster().prepareHealth("idx_unmapped").setWaitForYellowStatus().execute().actionGet();
for (int precision = 1; precision <= highestPrecisionGeohash; precision++) { for (int precision = 1; precision <= highestPrecisionGeohash; precision++) {
SearchResponse response = client().prepareSearch("idx_unmapped") SearchResponse response = client().prepareSearch("idx_unmapped")
.addAggregation(geohashGrid("geohashgrid") .addAggregation(geohashGrid("geohashgrid")