#2655 - Hardinging the LocalActorRefProviderSpec
This commit is contained in:
parent
3ee7dbcc45
commit
8ee11349bc
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue