Fixing SupervisorHierarchySpec after discovered bug in patmat
This commit is contained in:
parent
0e37586d17
commit
75ccbef0f7
1 changed files with 5 additions and 5 deletions
|
|
@ -194,7 +194,7 @@ object SupervisorHierarchySpec {
|
|||
case x ⇒ (x, x)
|
||||
}
|
||||
override val supervisorStrategy = OneForOneStrategy()(unwrap andThen {
|
||||
case _: Failure if pongsToGo > 0 ⇒
|
||||
case (_: Failure, _) if pongsToGo > 0 ⇒
|
||||
log :+= Event("pongOfDeath resuming " + sender, identityHashCode(this))
|
||||
Resume
|
||||
case (f: Failure, orig) ⇒
|
||||
|
|
@ -391,10 +391,10 @@ object SupervisorHierarchySpec {
|
|||
|
||||
// don’t escalate from this one!
|
||||
override val supervisorStrategy = OneForOneStrategy() {
|
||||
case f: Failure ⇒ f.directive
|
||||
case OriginalRestartException(f: Failure) ⇒ f.directive
|
||||
case ActorInitializationException(f: Failure) ⇒ f.directive
|
||||
case _ ⇒ Stop
|
||||
case f: Failure ⇒ f.directive
|
||||
case OriginalRestartException(f: Failure) ⇒ f.directive
|
||||
case ActorInitializationException(_, _, f: Failure) ⇒ f.directive
|
||||
case _ ⇒ Stop
|
||||
}
|
||||
|
||||
var children = Vector.empty[ActorRef]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue