Wait on shutdown of extra actor systems in tests. See #3217
This commit is contained in:
parent
3bc661bed6
commit
e00ab533bb
84 changed files with 762 additions and 845 deletions
|
|
@ -268,14 +268,7 @@ abstract class MultiNodeSpec(val myself: RoleName, _system: ActorSystem, _roles:
|
|||
}
|
||||
}
|
||||
}
|
||||
system.shutdown()
|
||||
try system.awaitTermination(shutdownTimeout) catch {
|
||||
case _: TimeoutException ⇒
|
||||
val msg = "Failed to stop [%s] within [%s] \n%s".format(system.name, shutdownTimeout,
|
||||
system.asInstanceOf[ActorSystemImpl].printTree)
|
||||
if (verifySystemShutdown) throw new RuntimeException(msg)
|
||||
else system.log.warning(msg)
|
||||
}
|
||||
shutdown(system)
|
||||
afterTermination()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue