From 41b5c3d562bfa449d922e743f1279c7d6d634821 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Mon, 19 Dec 2011 13:51:33 +0200 Subject: [PATCH] wait for yellow state in test --- .../integration/search/scriptfield/ScriptFieldSearchTests.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/elasticsearch/test/integration/search/scriptfield/ScriptFieldSearchTests.java b/src/test/java/org/elasticsearch/test/integration/search/scriptfield/ScriptFieldSearchTests.java index 5cfb51bc4f4..0e75bec50a8 100644 --- a/src/test/java/org/elasticsearch/test/integration/search/scriptfield/ScriptFieldSearchTests.java +++ b/src/test/java/org/elasticsearch/test/integration/search/scriptfield/ScriptFieldSearchTests.java @@ -145,6 +145,7 @@ public class ScriptFieldSearchTests extends AbstractNodesTests { // its ok } client.admin().indices().prepareCreate("test").execute().actionGet(); + client.admin().cluster().prepareHealth().setWaitForYellowStatus().execute().actionGet(); client.prepareIndex("test", "type1", "1") .setSource(jsonBuilder().startObject() .startObject("obj1").field("test", "something").endObject()