Fixing ask/? for the routers so that tests pass and stuff

This commit is contained in:
Viktor Klang 2011-10-27 18:04:12 +02:00
parent e71d9f79f9
commit c998485865
4 changed files with 32 additions and 29 deletions

View file

@ -194,15 +194,9 @@ class RoutingSpec extends AkkaSpec {
}
})
val props = RoutedProps().withRoundRobinRouter.withLocalConnections(List(connection1))
val actor = app.actorOf(props, "foo")
val actor = app.actorOf(RoutedProps().withRoundRobinRouter.withLocalConnections(List(connection1)), "foo")
try {
actor ? Broadcast(1)
fail()
} catch {
case e: RoutingException
}
intercept[RoutingException] { actor ? Broadcast(1) }
actor ! "end"
doneLatch.await(5, TimeUnit.SECONDS) must be(true)