Fix race in UnreachableNodeRejoinsClusterSpec

This commit is contained in:
Patrik Nordwall 2012-07-05 09:50:58 +02:00
parent 6aa5f93f6e
commit 37826533d3
3 changed files with 13 additions and 6 deletions

View file

@ -58,6 +58,11 @@ abstract class UnreachableNodeRejoinsClusterSpec
}
"mark a node as UNREACHABLE when we pull the network" taggedAs LongRunningTest in {
// let them send at least one heartbeat to each other after the gossip convergence
// because for new joining nodes we remove them from the failure detector when
// receive gossip
2.seconds.dilated.sleep
runOn(first) {
// pull network for victim node from all nodes
allBut(victim).foreach { roleName