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
|
|
@ -961,7 +961,7 @@ abstract class StressSpec
|
|||
reportResult {
|
||||
val nextAS =
|
||||
if (activeRoles contains myself) {
|
||||
previousAS foreach { _.shutdown() }
|
||||
previousAS foreach { as ⇒ TestKit.shutdownActorSystem(as) }
|
||||
val sys = ActorSystem(system.name, system.settings.config)
|
||||
muteLog(sys)
|
||||
Cluster(sys).joinSeedNodes(seedNodes.toIndexedSeq map address)
|
||||
|
|
@ -990,7 +990,7 @@ abstract class StressSpec
|
|||
}
|
||||
}
|
||||
|
||||
loop(1, None, Set.empty) foreach { _.shutdown }
|
||||
loop(1, None, Set.empty) foreach { as ⇒ TestKit.shutdownActorSystem(as) }
|
||||
within(loopDuration) {
|
||||
runOn(usedRoles: _*) {
|
||||
awaitMembersUp(nbrUsedRoles, timeout = remaining)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue