Harden PrimitiveStateSpec: Expect termination before starting next actor #25958

This commit is contained in:
Christopher Batey 2019-02-21 16:06:56 +00:00 committed by Johan Andrén
parent 111cbc28e9
commit b572f541e5

View file

@ -54,8 +54,10 @@ class PrimitiveStateSpec extends ScalaTestWithActorTestKit(PrimitiveStateSpec.co
probe.expectMessage("eventHandler:1:2")
ref1 ! -1
probe.expectTerminated(ref1)
val ref2 = testKit.spawn(b)
// eventHandler from reply
// eventHandler from replay
probe.expectMessage("eventHandler:0:1")
probe.expectMessage("eventHandler:1:2")
probe.expectMessage("onRecoveryCompleted:3")