Skip to content

Commit

Permalink
=act #3857 Ensure that only relevant test messages go to dead letters
Browse files Browse the repository at this point in the history
*   Since there was no sender for the `Create` message in the test, the
    created `ActorRef` was also sent to dead letters, creating a race
    where the test could start to subscribe _too early_ and receive the
    `ActorRef` instead of the expected string.
  • Loading branch information
bantonsson committed Feb 3, 2014
1 parent 6ad0550 commit 7f18936
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ class ActorSelectionSpec extends AkkaSpec("akka.loglevel=DEBUG") with DefaultTim
}

"send ActorSelection wildcard targeted to missing actor to deadLetters" in {
val creator = TestProbe()
implicit def self = creator.ref
val top = system.actorOf(p, "top")
top ! Create("child1")
top ! Create("child2")
Expand Down

0 comments on commit 7f18936

Please sign in to comment.