ArteryMessageLoggingSpec pick up command line overrides for akka settings

Use ConfigFactory.load to pick up overrides in the additional actor
system. Otherwise one runs with udp and other tcp for the artery-tcp
job.

Fixes #24806
This commit is contained in:
Christopher Batey 2018-04-03 08:03:57 +01:00
parent 896aa7e33b
commit 74f39e9409

View file

@ -52,8 +52,9 @@ class ClassicMessageLoggingSpec extends MessageLoggingSpec(config(false))
abstract class MessageLoggingSpec(config: Config) extends AkkaSpec(config) with ImplicitSender {
val remoteSystem = ActorSystem("remote-sys", config)
val remoteSystem = ActorSystem("remote-sys", ConfigFactory.load(config))
val remoteAddress = remoteSystem.asInstanceOf[ExtendedActorSystem].provider.getDefaultAddress
"Message logging" must {
"not be on if debug logging not enabled" in {
remoteSystem.actorOf(Props[BadActor], "bad")