[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
1 changed files with 2 additions and 0 deletions

View File

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