#19344 Made BackoffSupervisorSpec more robust

This commit is contained in:
Endre Sándor Varga 2016-01-22 14:24:36 +01:00
parent 9ba5596103
commit 88e3311c38

View file

@ -133,8 +133,11 @@ class BackoffSupervisorSpec extends AkkaSpec with ImplicitSender {
watch(c1)
c1 ! "boom"
expectTerminated(c1)
supervisor ! BackoffSupervisor.GetRestartCount
expectMsg(BackoffSupervisor.RestartCount(1))
awaitAssert {
supervisor ! BackoffSupervisor.GetRestartCount
expectMsg(BackoffSupervisor.RestartCount(1))
}
awaitAssert {
supervisor ! BackoffSupervisor.GetCurrentChild