wait for yellow state in test

This commit is contained in:
Shay Banon 2011-12-19 13:51:33 +02:00
parent 33db88232d
commit 41b5c3d562
1 changed files with 1 additions and 0 deletions

View File

@ -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()