Add convergence verification to NodeStartupSpec. See #1948

This commit is contained in:
Patrik Nordwall 2012-05-23 17:39:34 +02:00
parent 3ab02e9519
commit 3e416a4b2c

View file

@ -67,7 +67,8 @@ class NodeStartupSpec extends MultiNodeSpec(NodeStartupMultiJvmSpec) with Implic
"join the other node cluster when sending a Join command" taggedAs LongRunningTest in {
runOn(second) {
// start cluster on second node, and join
Cluster(system)
val secondNode = Cluster(system)
awaitCond(secondNode.convergence.isDefined)
}
runOn(first) {
@ -78,6 +79,7 @@ class NodeStartupSpec extends MultiNodeSpec(NodeStartupMultiJvmSpec) with Implic
}
}
firstNode.latestGossip.members.size must be(2)
awaitCond(firstNode.convergence.isDefined)
}
testConductor.enter("done")