[TEST] wait for yellow else assertSearchResponse will trip

This commit is contained in:
Britta Weber 2014-09-26 11:13:12 +02:00
parent 75d2a84772
commit eb9d39f611
1 changed files with 2 additions and 0 deletions

View File

@ -415,6 +415,8 @@ public class FunctionScoreTests extends ElasticsearchIntegrationTest {
@Test
public void testScriptScoresWithAgg() throws IOException {
createIndex(INDEX);
ensureYellow();
index(INDEX, TYPE, "1", jsonBuilder().startObject().field("dummy_field", 1).endObject());
refresh();
SearchResponse response = client().search(