Merge pull request #25291 from johanandren/wip-24728-cluster-api-spec-fail-johanandren

Don't trigger graceful leave in typed ClusterApiSpec
This commit is contained in:
Patrik Nordwall 2018-07-02 20:14:56 +02:00 committed by GitHub
commit f0b0183ef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,6 +32,8 @@ object ClusterApiSpec {
}
# generous timeout for cluster forming probes
akka.actor.testkit.typed.default-timeout = 10s
# disable this or we cannot be sure to observe node end state on the leaving side
akka.cluster.run-coordinated-shutdown-when-down = off
""")
}
@ -93,6 +95,7 @@ class ClusterApiSpec extends ActorTestKit with TypedAkkaSpecWithShutdown with Sc
// selfMember updated and self removed event gotten
node2Probe.awaitAssert(clusterNode2.selfMember.status should ===(MemberStatus.Removed))
node2Probe.expectMessage(SelfRemoved(MemberStatus.Exiting))
// subscribing to SelfRemoved when already removed yields immediate message back