From 75d2a84772faf29e7fbea6ba8ab1171d2db39dd4 Mon Sep 17 00:00:00 2001 From: Britta Weber Date: Fri, 26 Sep 2014 10:51:15 +0200 Subject: [PATCH] [TEST] wait for yellow else assertSearchResponse will trip --- .../elasticsearch/search/functionscore/FunctionScoreTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java index 8f8646d5f0a..33f041533cf 100644 --- a/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java +++ b/src/test/java/org/elasticsearch/search/functionscore/FunctionScoreTests.java @@ -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(