don’t use the testActor.queue for probe.watch(), see #2915
This commit is contained in:
parent
40a67a4097
commit
405174d4c3
3 changed files with 21 additions and 13 deletions
|
|
@ -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))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue