sleep before checking for no master block
This commit is contained in:
parent
e059e213db
commit
45b5594e9b
|
@ -64,6 +64,8 @@ public class NoMasterNodeTests extends AbstractNodesTests {
|
||||||
node.client().admin().indices().prepareCreate("test").execute().actionGet();
|
node.client().admin().indices().prepareCreate("test").execute().actionGet();
|
||||||
node2.close();
|
node2.close();
|
||||||
|
|
||||||
|
Thread.sleep(200);
|
||||||
|
|
||||||
ClusterState state = node.client().admin().cluster().prepareState().setLocal(true).execute().actionGet().state();
|
ClusterState state = node.client().admin().cluster().prepareState().setLocal(true).execute().actionGet().state();
|
||||||
assertThat(state.blocks().hasGlobalBlock(Discovery.NO_MASTER_BLOCK), equalTo(true));
|
assertThat(state.blocks().hasGlobalBlock(Discovery.NO_MASTER_BLOCK), equalTo(true));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue