Bind failures are now explicitly reported instead of swallowed

This commit is contained in:
Endre Sándor Varga 2013-02-06 12:17:52 +01:00
parent 116dcc0e54
commit 6f0d0911a9
12 changed files with 63 additions and 58 deletions

View file

@ -573,7 +573,7 @@ class TcpConnectionSpec extends AkkaSpec("akka.io.tcp.register-timeout = 500ms")
commander: ActorRef): TestActorRef[TcpOutgoingConnection] = {
TestActorRef(
new TcpOutgoingConnection(Tcp(system), commander, serverAddress, localAddress, options) {
new TcpOutgoingConnection(Tcp(system), commander, Connect(serverAddress, localAddress, options)) {
override def postRestart(reason: Throwable) {
// ensure we never restart
context.stop(self)