bwc tests: make sure first node is only started once
This commit is contained in:
parent
edbc375916
commit
510d7d84b2
|
@ -293,7 +293,6 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named {
|
|||
if (firstNode == null) {
|
||||
node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[]");
|
||||
} else {
|
||||
firstNode.start();
|
||||
firstNode.waitForAllConditions();
|
||||
node.defaultConfig.put("discovery.zen.ping.unicast.hosts", "[\"" + firstNode.getTransportPortURI() + "\"]");
|
||||
}
|
||||
|
@ -302,6 +301,7 @@ public class ElasticsearchCluster implements TestClusterConfiguration, Named {
|
|||
}
|
||||
if (firstNode == null) {
|
||||
firstNode = node;
|
||||
firstNode.start();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue