Merge pull request #1223 from akka/wip-fish-ignore-patriknw

Use fishForMessage instead of ignoreMsg, see #3116
This commit is contained in:
Roland Kuhn 2013-03-06 00:49:21 -08:00
commit 2444971ade

View file

@ -114,10 +114,13 @@ class ClusterSingletonManagerChaosSpec extends MultiNodeSpec(ClusterSingletonMan
enterBarrier(leader.name + "-active")
runOn(sortedClusterRoles.filterNot(_ == leader): _*) {
ignoreMsg { case EchoStarted true }
echo(leader) ! "hello"
expectMsgType[ActorRef].path.address must be(node(leader).address)
ignoreNoMsg()
fishForMessage() {
case _: ActorRef true
case EchoStarted false
} match {
case echoRef: ActorRef echoRef.path.address must be(node(leader).address)
}
}
enterBarrier(leader.name + "-verified")
}