File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
server/src/test/java/org/elasticsearch/snapshots Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1569,7 +1569,7 @@ public void testSnapshotClosedIndex() throws Exception {
1569
1569
createIndex ("test-idx" , "test-idx-closed" );
1570
1570
ensureGreen ();
1571
1571
logger .info ("--> closing index test-idx-closed" );
1572
- assertAcked (client .admin ().indices ().prepareClose ("test-idx-closed" ));
1572
+ assertAcked (client .admin ().indices ().prepareClose ("test-idx-closed" ). setWaitForActiveShards ( ActiveShardCount . ALL ) );
1573
1573
ClusterStateResponse stateResponse = client .admin ().cluster ().prepareState ().get ();
1574
1574
assertThat (stateResponse .getState ().metaData ().index ("test-idx-closed" ).getState (), equalTo (IndexMetaData .State .CLOSE ));
1575
1575
assertThat (stateResponse .getState ().routingTable ().index ("test-idx-closed" ), notNullValue ());
You can’t perform that action at this time.
0 commit comments