Forráskód Böngészése

Use #ensureSearchable() in GeoHashGridTests

Simon Willnauer 11 éve
szülő
commit
f9d1552282

+ 1 - 3
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")