From 74f39e94097508ad4a5f79d490d8de213a1f63d6 Mon Sep 17 00:00:00 2001 From: Christopher Batey Date: Tue, 3 Apr 2018 08:03:57 +0100 Subject: [PATCH] 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 --- .../src/test/scala/akka/remote/MessageLoggingSpec.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akka-remote/src/test/scala/akka/remote/MessageLoggingSpec.scala b/akka-remote/src/test/scala/akka/remote/MessageLoggingSpec.scala index 14a4cde03f..a108441cfd 100644 --- a/akka-remote/src/test/scala/akka/remote/MessageLoggingSpec.scala +++ b/akka-remote/src/test/scala/akka/remote/MessageLoggingSpec.scala @@ -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")