- Fixes in contrib and docs

- Fixed getExternalAddressFor
This commit is contained in:
Endre Sándor Varga 2012-12-12 13:39:57 +01:00
parent f1177464ad
commit 6bd64d55bd
5 changed files with 15 additions and 18 deletions

View file

@ -20,7 +20,7 @@ object RemoteDeploymentDocSpec {
class RemoteDeploymentDocSpec extends AkkaSpec("""
akka.actor.provider = "akka.remote.RemoteActorRefProvider"
akka.remote.netty.port = 0
akka.remoting.transports.tcp.port = 0
""") with ImplicitSender {
import RemoteDeploymentDocSpec._
@ -42,8 +42,8 @@ class RemoteDeploymentDocSpec extends AkkaSpec("""
"demonstrate address extractor" in {
//#make-address
val one = AddressFromURIString("akka://sys@host:1234")
val two = Address("akka", "sys", "host", 1234) // this gives the same
val one = AddressFromURIString("tcp.akka://sys@host:1234")
val two = Address("tcp.akka", "sys", "host", 1234) // this gives the same
//#make-address
one must be === two
}