Eliminate logging race condition in ActorSystemSpec #28648
This commit is contained in:
parent
f781939353
commit
62c71a21de
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ class ActorSystemSpec extends AkkaSpec(ActorSystemSpec.config) with ImplicitSend
|
||||||
a.tell("run", probe.ref)
|
a.tell("run", probe.ref)
|
||||||
probe.expectTerminated(a)
|
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
|
EventFilter
|
||||||
.info(pattern = ".*not delivered", occurrences = 1)
|
.info(pattern = ".*not delivered", occurrences = 1)
|
||||||
.intercept {
|
.intercept {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue