[TEST] use ensureYellow()
This commit is contained in:
parent
185521be4b
commit
60e805cc1f
|
@ -94,9 +94,7 @@ public class RecoveryPercolatorTests extends ElasticsearchIntegrationTest {
|
||||||
internalCluster().rollingRestart();
|
internalCluster().rollingRestart();
|
||||||
|
|
||||||
logger.info("Running Cluster Health (wait for the shards to startup)");
|
logger.info("Running Cluster Health (wait for the shards to startup)");
|
||||||
ClusterHealthResponse clusterHealth = client().admin().cluster().health(clusterHealthRequest().waitForYellowStatus().waitForActiveShards(1)).actionGet();
|
ensureYellow();
|
||||||
logger.info("Done Cluster Health, status " + clusterHealth.getStatus());
|
|
||||||
assertThat(clusterHealth.isTimedOut(), equalTo(false));
|
|
||||||
|
|
||||||
percolate = client().preparePercolate()
|
percolate = client().preparePercolate()
|
||||||
.setIndices("test").setDocumentType("type1")
|
.setIndices("test").setDocumentType("type1")
|
||||||
|
|
Loading…
Reference in New Issue