BackoffSupervisorSpec: Fix race of terminated messages (#25947)
This commit is contained in:
parent
3012154ae6
commit
bf714dd72a
1 changed files with 4 additions and 2 deletions
|
|
@ -330,8 +330,10 @@ class BackoffSupervisorSpec extends AkkaSpec with ImplicitSender with Eventually
|
|||
awaitAssert(c3 should !==(c2))
|
||||
watch(c3)
|
||||
c3 ! "boom"
|
||||
expectTerminated(c3)
|
||||
expectTerminated(supervisor)
|
||||
withClue("Expected child and supervisor to terminate") {
|
||||
Set(expectMsgType[Terminated].actor, expectMsgType[Terminated].actor) shouldEqual Set(c3, supervisor)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue