#19192 Cluster extension helper to get full path of an actor ref
This commit is contained in:
parent
f77fd82b10
commit
9d71142748
2 changed files with 21 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue