[TEST] wait for yellow else assertSearchResponse will trip

This commit is contained in:
Britta Weber 2014-09-26 10:51:15 +02:00
parent e207189037
commit 75d2a84772

View File

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