Harden PrimitiveStateSpec: Expect termination before starting next actor #25958
This commit is contained in:
parent
111cbc28e9
commit
b572f541e5
1 changed files with 3 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue