Fix artery test file leak #21484
* Include actor system name in artery dir path to ease debugging leaks * Base class name changed to make actor system autonaming work * Add shutdown hook directly in transport start * Wait for completion in shutdown hook (actual leak fix)
This commit is contained in:
parent
133bafdf04
commit
a939e30b49
28 changed files with 78 additions and 88 deletions
|
|
@ -9,7 +9,7 @@ import akka.actor.ActorRef
|
|||
import akka.actor.Address
|
||||
import akka.actor.PoisonPill
|
||||
import akka.actor.Props
|
||||
import akka.remote.MultiNodeRemotingSpec
|
||||
import akka.remote.RemotingMultiNodeSpec
|
||||
import akka.remote.testkit.{ MultiNodeConfig, MultiNodeSpec, STMultiNodeSpec }
|
||||
import akka.routing.Broadcast
|
||||
import akka.routing.RandomPool
|
||||
|
|
@ -27,7 +27,7 @@ class RemoteRandomConfig(artery: Boolean) extends MultiNodeConfig {
|
|||
commonConfig(debugConfig(on = false).withFallback(
|
||||
ConfigFactory.parseString(s"""
|
||||
akka.remote.artery.enabled = $artery
|
||||
""")).withFallback(MultiNodeRemotingSpec.arteryFlightRecordingConf))
|
||||
""")).withFallback(RemotingMultiNodeSpec.arteryFlightRecordingConf))
|
||||
|
||||
deployOnAll("""
|
||||
/service-hello {
|
||||
|
|
@ -56,7 +56,7 @@ object RemoteRandomSpec {
|
|||
}
|
||||
}
|
||||
|
||||
class RemoteRandomSpec(multiNodeConfig: RemoteRandomConfig) extends MultiNodeRemotingSpec(multiNodeConfig)
|
||||
class RemoteRandomSpec(multiNodeConfig: RemoteRandomConfig) extends RemotingMultiNodeSpec(multiNodeConfig)
|
||||
with DefaultTimeout {
|
||||
import multiNodeConfig._
|
||||
import RemoteRandomSpec._
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue