remove child in Terminated() processing, see #2391
This commit is contained in:
parent
7f1a4d3ab6
commit
d6f42ca344
9 changed files with 23 additions and 14 deletions
|
|
@ -113,7 +113,8 @@ class FaultHandlingDocSpec extends AkkaSpec with ImplicitSender {
|
|||
//#stop
|
||||
watch(child) // have testActor watch “child”
|
||||
child ! new IllegalArgumentException // break it
|
||||
expectMsg(Terminated(child)(existenceConfirmed = true))
|
||||
val t = expectMsg(Terminated(child)(true, 0))
|
||||
t.existenceConfirmed must be(true)
|
||||
child.isTerminated must be(true)
|
||||
//#stop
|
||||
}
|
||||
|
|
@ -127,7 +128,8 @@ class FaultHandlingDocSpec extends AkkaSpec with ImplicitSender {
|
|||
expectMsg(0)
|
||||
|
||||
child2 ! new Exception("CRASH") // escalate failure
|
||||
expectMsg(Terminated(child2)(existenceConfirmed = true))
|
||||
val t = expectMsg(Terminated(child2)(true, 0))
|
||||
t.existenceConfirmed must be(true)
|
||||
//#escalate-kill
|
||||
//#escalate-restart
|
||||
val supervisor2 = system.actorOf(Props[Supervisor2], "supervisor2")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue