#2655 - Hardinging the LocalActorRefProviderSpec

This commit is contained in:
Viktor Klang 2012-10-29 16:02:37 +01:00
parent 3ee7dbcc45
commit 8ee11349bc

View file

@ -43,9 +43,10 @@ class LocalActorRefProviderSpec extends AkkaSpec(LocalActorRefProviderSpec.confi
val childName = "akka%3A%2F%2FClusterSystem%40127.0.0.1%3A2552"
val a = system.actorOf(Props(new Actor {
val child = context.actorOf(Props.empty, name = childName)
assert(childName == child.path.name)
def receive = {
case "lookup" sender ! context.actorFor(childName)
case "lookup"
if (childName == child.path.name) sender ! context.actorFor(childName)
else sender ! s"§childName is not ${child.path.name}!"
}
}))
a.tell("lookup", testActor)