mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-27 15:39:49 +00:00
Test: add wait for nodes to restorePersistentSettingsTest
Sometimes by the time update settings is called the second node is not in the cluster yet. As a result change of minimum master node settings to 2 is ignored making this test to fail.
This commit is contained in:
parent
e607e53591
commit
dcc15a6460
@ -93,6 +93,8 @@ public class DedicatedClusterSnapshotRestoreTests extends AbstractSnapshotTests
|
||||
internalCluster().startNode(nodeSettings);
|
||||
Client client = client();
|
||||
String secondNode = internalCluster().startNode(nodeSettings);
|
||||
logger.info("--> wait for the second node to join the cluster");
|
||||
assertThat(client.admin().cluster().prepareHealth().setWaitForNodes("2").get().isTimedOut(), equalTo(false));
|
||||
|
||||
int random = randomIntBetween(10, 42);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user