From aa16bfaa6605e8989e643986114e6570d0e9c057 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Mon, 25 Feb 2013 15:44:38 +0100 Subject: [PATCH] #3093 - removing the temporal constraints on TcpConnectionSpec --- .../src/test/scala/akka/io/TcpConnectionSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/akka-actor-tests/src/test/scala/akka/io/TcpConnectionSpec.scala b/akka-actor-tests/src/test/scala/akka/io/TcpConnectionSpec.scala index b2eec02416..d9a8a89f5a 100644 --- a/akka-actor-tests/src/test/scala/akka/io/TcpConnectionSpec.scala +++ b/akka-actor-tests/src/test/scala/akka/io/TcpConnectionSpec.scala @@ -501,8 +501,8 @@ class TcpConnectionSpec extends AkkaSpec("akka.io.tcp.register-timeout = 500ms") watch(connectionActor) EventFilter[DeathPactException](occurrences = 1) intercept { system.stop(connectionHandler.ref) - expectMsgType[Terminated].actor must be(connectionHandler.ref) - expectMsgType[Terminated].actor must be(connectionActor) + val deaths = Set(expectMsgType[Terminated].actor, expectMsgType[Terminated].actor) + deaths must be(Set(connectionHandler.ref, connectionActor)) } } }