don’t use the testActor.queue for probe.watch(), see #2915

This commit is contained in:
Roland 2013-01-23 23:05:32 +01:00
parent 40a67a4097
commit 405174d4c3
3 changed files with 21 additions and 13 deletions

View file

@ -85,6 +85,15 @@ class TestProbeSpec extends AkkaSpec with DefaultTimeout {
expectMsg("pigdog")
}
"watch actors when queue non-empty" in {
val probe = TestProbe()
val target = system.actorFor("/nonexistent") // deadLetters does not send Terminated
probe.ref ! "hello"
probe watch target
probe.expectMsg(1.seconds, "hello")
probe.expectMsg(1.seconds, Terminated(target)(false, false))
}
}
}