[TEST] use ensureYellow()

This commit is contained in:
Britta Weber 2014-12-12 18:03:32 +01:00
parent 185521be4b
commit 60e805cc1f
1 changed files with 1 additions and 3 deletions

View File

@ -94,9 +94,7 @@ public class RecoveryPercolatorTests extends ElasticsearchIntegrationTest {
internalCluster().rollingRestart();
logger.info("Running Cluster Health (wait for the shards to startup)");
ClusterHealthResponse clusterHealth = client().admin().cluster().health(clusterHealthRequest().waitForYellowStatus().waitForActiveShards(1)).actionGet();
logger.info("Done Cluster Health, status " + clusterHealth.getStatus());
assertThat(clusterHealth.isTimedOut(), equalTo(false));
ensureYellow();
percolate = client().preparePercolate()
.setIndices("test").setDocumentType("type1")