#19192 Cluster extension helper to get full path of an actor ref

This commit is contained in:
Balazs Kossovics 2015-12-15 22:31:50 +01:00 committed by Roland Kuhn
parent f77fd82b10
commit 9d71142748
2 changed files with 21 additions and 0 deletions

View file

@ -135,5 +135,12 @@ class ClusterSpec extends AkkaSpec(ClusterSpec.config) with ImplicitSender {
}
}
"allow to resolve remotePathOf any actor" in {
val remotePath = cluster.remotePathOf(testActor)
testActor.path.address.host should ===(None)
cluster.remotePathOf(testActor).uid should ===(testActor.path.uid)
cluster.remotePathOf(testActor).address should ===(selfAddress)
}
}
}