Removing nodename
This commit is contained in:
parent
5006f96348
commit
bfd11ad8c5
21 changed files with 29 additions and 59 deletions
|
|
@ -11,7 +11,7 @@ object DirectRoutedRemoteActorMultiJvmSpec extends AbstractRemoteActorMultiJvmSp
|
|||
|
||||
class SomeActor extends Actor with Serializable {
|
||||
def receive = {
|
||||
case "identify" ⇒ sender ! context.system.nodename
|
||||
case "identify" ⇒ sender ! self.path.address.hostPort
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ class DirectRoutedRemoteActorMultiJvmNode2 extends AkkaRemoteSpec(DirectRoutedRe
|
|||
val actor = system.actorOf(Props[SomeActor], "service-hello")
|
||||
actor.isInstanceOf[RemoteActorRef] must be(true)
|
||||
|
||||
Await.result(actor ? "identify", timeout.duration) must equal("node1")
|
||||
Await.result(actor ? "identify", timeout.duration) must equal("AkkaRemoteSpec@localhost:9991")
|
||||
|
||||
barrier("done")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue