Fix test for #2668.

This commit is contained in:
David Pilato 2013-04-05 15:00:28 +02:00
parent 9b5c74d43e
commit 4b1ec037f8
1 changed files with 4 additions and 0 deletions

View File

@ -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);