Merge pull request #17473 from akka/wip-17084-NettyTransportSpec-patriknw
=rem #17084 Skip test if 127.0.1.1 is not available
This commit is contained in:
commit
cfbfd3eabd
1 changed files with 8 additions and 1 deletions
|
|
@ -145,7 +145,14 @@ trait BindBehaviour { this: WordSpec with Matchers ⇒
|
|||
|
||||
s"bind to specified $proto address" in {
|
||||
val address = SocketUtil.temporaryServerAddress(address = "127.0.0.1", udp = proto == "udp")
|
||||
val bindAddress = SocketUtil.temporaryServerAddress(address = "127.0.1.1", udp = proto == "udp")
|
||||
val bindAddress =
|
||||
try SocketUtil.temporaryServerAddress(address = "127.0.1.1", udp = proto == "udp")
|
||||
catch {
|
||||
case e: java.net.BindException ⇒
|
||||
info(s"skipping test due to [${e.getMessage}], you probably have to use `ifconfig lo0 alias 127.0.1.1`")
|
||||
pending
|
||||
null
|
||||
}
|
||||
|
||||
val bindConfig = ConfigFactory.parseString(s"""
|
||||
akka.remote {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue