mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 21:48:39 +00:00
Fix test for #2668.
This commit is contained in:
parent
9b5c74d43e
commit
4b1ec037f8
@ -199,6 +199,10 @@ public class SimpleNodesInfoTests extends AbstractNodesTests {
|
||||
}
|
||||
|
||||
startNode(name, settings);
|
||||
|
||||
// We wait for a Green status
|
||||
client(name).admin().cluster().health(clusterHealthRequest().waitForGreenStatus()).actionGet();
|
||||
|
||||
String serverNodeId = ((InternalNode) node(name)).injector()
|
||||
.getInstance(ClusterService.class).state().nodes().localNodeId();
|
||||
logger.debug("--> server {} started" + serverNodeId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user