Removing the final usages of startsWatching/stopsWatching

This commit is contained in:
Viktor Klang 2011-12-02 01:00:55 +01:00
parent 54e2e9a357
commit fcc6169ede
7 changed files with 48 additions and 69 deletions

View file

@ -155,7 +155,10 @@ class TestActorRefSpec extends AkkaSpec with BeforeAndAfterEach {
"stop when sent a poison pill" in {
EventFilter[ActorKilledException]() intercept {
val a = TestActorRef(Props[WorkerActor])
testActor startsWatching a
val forwarder = actorOf(Props(new Actor {
watch(a)
def receive = { case x testActor forward x }
}))
a.!(PoisonPill)(testActor)
expectMsgPF(5 seconds) {
case Terminated(`a`) true