=all #3837 Make akkaScalaNightly compile on scala 2.11.0-M8
This commit is contained in:
parent
85698688e4
commit
179faba453
82 changed files with 651 additions and 643 deletions
|
|
@ -98,33 +98,33 @@ class ConfiguredLocalRoutingSpec extends AkkaSpec(ConfiguredLocalRoutingSpec.con
|
|||
|
||||
"be picked up from Props" in {
|
||||
val actor = system.actorOf(RoundRobinPool(12).props(routeeProps = Props[EchoProps]), "someOther")
|
||||
routerConfig(actor) should equal(RoundRobinPool(12))
|
||||
routerConfig(actor) should be(RoundRobinPool(12))
|
||||
Await.result(gracefulStop(actor, 3 seconds), 3 seconds)
|
||||
}
|
||||
|
||||
"be overridable in config" in {
|
||||
val actor = system.actorOf(RoundRobinPool(12).props(routeeProps = Props[EchoProps]), "config")
|
||||
routerConfig(actor) should equal(RandomPool(nrOfInstances = 4, usePoolDispatcher = true))
|
||||
routerConfig(actor) should be(RandomPool(nrOfInstances = 4, usePoolDispatcher = true))
|
||||
Await.result(gracefulStop(actor, 3 seconds), 3 seconds)
|
||||
}
|
||||
|
||||
"use routees.paths from config" in {
|
||||
val actor = system.actorOf(RandomPool(12).props(routeeProps = Props[EchoProps]), "paths")
|
||||
routerConfig(actor) should equal(RandomGroup(List("/user/service1", "/user/service2")))
|
||||
routerConfig(actor) should be(RandomGroup(List("/user/service1", "/user/service2")))
|
||||
Await.result(gracefulStop(actor, 3 seconds), 3 seconds)
|
||||
}
|
||||
|
||||
"be overridable in explicit deployment" in {
|
||||
val actor = system.actorOf(FromConfig.props(routeeProps = Props[EchoProps]).
|
||||
withDeploy(Deploy(routerConfig = RoundRobinPool(12))), "someOther")
|
||||
routerConfig(actor) should equal(RoundRobinPool(12))
|
||||
routerConfig(actor) should be(RoundRobinPool(12))
|
||||
Await.result(gracefulStop(actor, 3 seconds), 3 seconds)
|
||||
}
|
||||
|
||||
"be overridable in config even with explicit deployment" in {
|
||||
val actor = system.actorOf(FromConfig.props(routeeProps = Props[EchoProps]).
|
||||
withDeploy(Deploy(routerConfig = RoundRobinPool(12))), "config")
|
||||
routerConfig(actor) should equal(RandomPool(nrOfInstances = 4, usePoolDispatcher = true))
|
||||
routerConfig(actor) should be(RandomPool(nrOfInstances = 4, usePoolDispatcher = true))
|
||||
Await.result(gracefulStop(actor, 3 seconds), 3 seconds)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue