Switching to the appropriate check for confirmed existence
This commit is contained in:
parent
b45305a61e
commit
c990fee724
1 changed files with 6 additions and 2 deletions
|
|
@ -73,7 +73,9 @@ class RoutingSpec extends AkkaSpec(RoutingSpec.config) with DefaultTimeout with
|
||||||
watch(router)
|
watch(router)
|
||||||
watch(c2)
|
watch(c2)
|
||||||
system.stop(c2)
|
system.stop(c2)
|
||||||
expectMsg(Terminated(c2)(existenceConfirmed = true))
|
expectMsgPF() {
|
||||||
|
case t @ Terminated(`c2`) if t.existenceConfirmed == true ⇒ t
|
||||||
|
}
|
||||||
// it might take a while until the Router has actually processed the Terminated message
|
// it might take a while until the Router has actually processed the Terminated message
|
||||||
awaitCond {
|
awaitCond {
|
||||||
router ! ""
|
router ! ""
|
||||||
|
|
@ -84,7 +86,9 @@ class RoutingSpec extends AkkaSpec(RoutingSpec.config) with DefaultTimeout with
|
||||||
res == Seq(c1, c1)
|
res == Seq(c1, c1)
|
||||||
}
|
}
|
||||||
system.stop(c1)
|
system.stop(c1)
|
||||||
expectMsg(Terminated(router)(existenceConfirmed = true))
|
expectMsgPF() {
|
||||||
|
case t @ Terminated(`router`) if t.existenceConfirmed == true ⇒ t
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
"be able to send their routees" in {
|
"be able to send their routees" in {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue