Fixed according to review comments.

This commit is contained in:
Endre Sándor Varga 2012-11-22 13:33:48 +01:00
parent a0a860f0f7
commit 5b96c28acd
13 changed files with 199 additions and 191 deletions

View file

@ -195,14 +195,13 @@ class RemotingSpec extends AkkaSpec(RemotingSpec.cfg) with ImplicitSender with D
"support remote look-ups" in {
here ! "ping"
expectMsgPF() {
case ("pong", s: AnyRef) if s eq testActor true
}
expectMsg("pong")
lastSender must be(testActor)
}
"send error message for wrong address" in {
EventFilter.error(start = "AssociationError", occurrences = 1).intercept {
system.actorFor("test.akka://remotesys@localhost:12346/user/echo") ! "ping"
system.actorFor("test.akka://nonexistingsystem@localhost:12346/user/echo") ! "ping"
}
}