Merge pull request #15168 from akka/wip-readd-BalancingPool-test-∂π

=act add one more test to routing.BalancingSpec
This commit is contained in:
Roland Kuhn 2014-05-14 09:11:29 +02:00
commit 98463b2f5e

View file

@ -37,6 +37,13 @@ class BalancingSpec extends AkkaSpec(
attempt-teamwork = on
}
}
/balancingPool-3 {
router = balancing-pool
nr-of-instances = 5
pool-dispatcher {
attempt-teamwork = on
}
}
}
""") with ImplicitSender with BeforeAndAfterEach {
import BalancingSpec._
@ -84,5 +91,12 @@ class BalancingSpec extends AkkaSpec(
test(pool, latch)
}
"deliver messages in a balancing fashion when overridden in config" in {
val latch = TestLatch(1)
val pool = system.actorOf(BalancingPool(1).props(routeeProps =
Props(classOf[Worker], latch)), name = "balancingPool-3")
test(pool, latch)
}
}
}