refresh for test

This commit is contained in:
kimchy 2011-01-31 15:51:39 +02:00
parent 04c2a2a543
commit 5d39cc93dd
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public class SimplePercolatorTests extends AbstractNodesTests {
.field("color", "blue")
.field("query", termQuery("field1", "value1"))
.endObject())
.setRefresh(true)
.execute().actionGet();
client.admin().cluster().prepareHealth().setWaitForGreenStatus().setWaitForActiveShards(2).execute().actionGet();