Don't trigger graceful leave #24728

This commit is contained in:
Johan Andrén 2018-07-02 15:57:36 +02:00
parent 02f6899952
commit 75f044a0d0

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