Fix failing WeightedRouteesSpec, see #2547
This commit is contained in:
parent
5d874fec17
commit
39d81b37df
1 changed files with 4 additions and 1 deletions
|
|
@ -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] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue