diff --git a/src/test/java/org/elasticsearch/search/query/ExistsMissingTests.java b/src/test/java/org/elasticsearch/search/query/ExistsMissingTests.java index 3ebab0fc2a0..4b670b28c3a 100644 --- a/src/test/java/org/elasticsearch/search/query/ExistsMissingTests.java +++ b/src/test/java/org/elasticsearch/search/query/ExistsMissingTests.java @@ -89,7 +89,7 @@ public class ExistsMissingTests extends ElasticsearchIntegrationTest { for (Map source : sources) { reqs.add(client().prepareIndex("idx", "type").setSource(source)); } - indexRandom(true, reqs); + indexRandom(true, reqs); final Map expected = new LinkedHashMap(); expected.put("foo", 1); @@ -103,7 +103,7 @@ public class ExistsMissingTests extends ElasticsearchIntegrationTest { expected.put("foobar", 0); final long numDocs = client().prepareSearch("idx").execute().actionGet().getHits().totalHits(); - + ensureYellow("idx"); for (Map.Entry entry : expected.entrySet()) { final String fieldName = entry.getKey(); final int count = entry.getValue();