From 5fc9eb2061b91c87c22bc0042d855f2ac9fe5c77 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 7 Dec 2011 15:01:06 +0100 Subject: [PATCH] fix failing ActorLookupSpec: implied synchronicity in AskActorRef.whenDone which does not exist --- .../src/test/scala/akka/actor/ActorLookupSpec.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/akka-actor-tests/src/test/scala/akka/actor/ActorLookupSpec.scala b/akka-actor-tests/src/test/scala/akka/actor/ActorLookupSpec.scala index 1806c48830..af3b0ba65c 100644 --- a/akka-actor-tests/src/test/scala/akka/actor/ActorLookupSpec.scala +++ b/akka-actor-tests/src/test/scala/akka/actor/ActorLookupSpec.scala @@ -123,7 +123,8 @@ class ActorLookupSpec extends AkkaSpec with DefaultTimeout { a ! 42 f.isCompleted must be === true f.get must be === 42 - system.actorFor(a.path) must be === system.deadLetters + // clean-up is run as onComplete callback, i.e. dispatched on another thread + awaitCond(system.actorFor(a.path) == system.deadLetters, 1 second) } } @@ -229,7 +230,8 @@ class ActorLookupSpec extends AkkaSpec with DefaultTimeout { a ! 42 f.isCompleted must be === true f.get must be === 42 - (c2 ? LookupPath(a.path)).get must be === system.deadLetters + // clean-up is run as onComplete callback, i.e. dispatched on another thread + awaitCond((c2 ? LookupPath(a.path)).get == system.deadLetters, 1 second) } }