Eliminate logging race condition in ActorSystemSpec #28648

This commit is contained in:
Johan Andrén 2020-03-03 11:17:55 +01:00 committed by GitHub
parent f781939353
commit 62c71a21de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {