Added defaultAddress() to RemoteTransport API

This commit is contained in:
Endre Sándor Varga 2012-11-21 14:18:24 +01:00
parent b6bdb34e44
commit 682abccf7e
12 changed files with 40 additions and 28 deletions

View file

@ -135,7 +135,7 @@ abstract class Ticket1978CommunicationSpec(val cipherConfig: CipherConfig) exten
("-") must {
if (cipherConfig.runTest) {
val ignoreMe = other.actorOf(Props(new Actor { def receive = { case ("ping", x) sender ! ((("pong", x), sender)) } }), "echo")
val otherAddress = other.asInstanceOf[ExtendedActorSystem].provider.asInstanceOf[RemoteActorRefProvider].transport.addresses.head
val otherAddress = other.asInstanceOf[ExtendedActorSystem].provider.asInstanceOf[RemoteActorRefProvider].transport.defaultAddress
"support tell" in {
val here = system.actorFor(otherAddress.toString + "/user/echo")