From 62c71a21de677d7d02698cebed9546c9c352021e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Andr=C3=A9n?= Date: Tue, 3 Mar 2020 11:17:55 +0100 Subject: [PATCH] Eliminate logging race condition in ActorSystemSpec #28648 --- .../src/test/scala/akka/actor/ActorSystemSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/akka-actor-tests/src/test/scala/akka/actor/ActorSystemSpec.scala b/akka-actor-tests/src/test/scala/akka/actor/ActorSystemSpec.scala index 259945053d..9e7df54f74 100644 --- a/akka-actor-tests/src/test/scala/akka/actor/ActorSystemSpec.scala +++ b/akka-actor-tests/src/test/scala/akka/actor/ActorSystemSpec.scala @@ -181,7 +181,7 @@ class ActorSystemSpec extends AkkaSpec(ActorSystemSpec.config) with ImplicitSend a.tell("run", probe.ref) probe.expectTerminated(a) - a.tell("boom", ActorRef.noSender) + // Expecting two log entries: one from the actor system at info level and one at warning level from the logging testkit EventFilter .info(pattern = ".*not delivered", occurrences = 1) .intercept {