Decreased failure detector threshold to shorten failure detection time.

Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
Jonas Bonér 2012-05-28 11:33:14 +02:00
parent 6b2e42d954
commit a66ababd27

View file

@ -18,7 +18,12 @@ object LeaderDowningNodeThatIsUnreachableMultiJvmSpec extends MultiNodeConfig {
val fourth = role("fourth")
commonConfig(debugConfig(on = false).
withFallback(ConfigFactory.parseString("akka.cluster.auto-down = on")).
withFallback(ConfigFactory.parseString("""
akka.cluster {
auto-down = on
failure-detector.threshold = 4
}
""")).
withFallback(MultiNodeClusterSpec.clusterConfig))
}
@ -60,8 +65,6 @@ class LeaderDowningNodeThatIsUnreachableSpec
cluster.join(node(first).address)
awaitUpConvergence(numberOfMembers = 4)
cluster.isLeader must be(false)
testConductor.enter("all-up")
}
@ -102,8 +105,6 @@ class LeaderDowningNodeThatIsUnreachableSpec
cluster.join(node(first).address)
awaitUpConvergence(numberOfMembers = 3)
cluster.isLeader must be(false)
testConductor.enter("all-up")
}