From 39d81b37dfc11a70767e244decc7d0282bd359d5 Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Fri, 16 Nov 2012 13:35:10 +0100 Subject: [PATCH] Fix failing WeightedRouteesSpec, see #2547 --- .../scala/akka/cluster/routing/WeightedRouteesSpec.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/akka-cluster/src/test/scala/akka/cluster/routing/WeightedRouteesSpec.scala b/akka-cluster/src/test/scala/akka/cluster/routing/WeightedRouteesSpec.scala index f8fb48417b..f34b81c5ec 100644 --- a/akka-cluster/src/test/scala/akka/cluster/routing/WeightedRouteesSpec.scala +++ b/akka-cluster/src/test/scala/akka/cluster/routing/WeightedRouteesSpec.scala @@ -40,7 +40,10 @@ class WeightedRouteesSpec extends AkkaSpec(ConfigFactory.parseString(""" "check boundaries" in { val empty = new WeightedRoutees(Vector(), a1, Map.empty) - empty.total must be(0) + empty.isEmpty must be(true) + intercept[IllegalArgumentException] { + empty.total + } val weighted = new WeightedRoutees(Vector(refA, refB, refC), a1, Map.empty) weighted.total must be(3) intercept[IllegalArgumentException] {