=tes Use ConversionCheckedTripleEquals

This commit is contained in:
Patrik Nordwall 2015-01-16 11:09:59 +01:00
parent 142d9a51af
commit 30df518421
196 changed files with 2275 additions and 2266 deletions

View file

@ -88,9 +88,9 @@ abstract class ClusterConsistentHashingRouterSpec extends MultiNodeSpec(ClusterC
"create routees from configuration" in {
runOn(first) {
// it may take some time until router receives cluster member events
awaitAssert { currentRoutees(router1).size should be(4) }
awaitAssert { currentRoutees(router1).size should ===(4) }
val routees = currentRoutees(router1)
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should be(Set(address(first), address(second)))
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should ===(Set(address(first), address(second)))
}
enterBarrier("after-2")
}
@ -111,9 +111,9 @@ abstract class ClusterConsistentHashingRouterSpec extends MultiNodeSpec(ClusterC
runOn(first) {
// it may take some time until router receives cluster member events
awaitAssert { currentRoutees(router1).size should be(6) }
awaitAssert { currentRoutees(router1).size should ===(6) }
val routees = currentRoutees(router1)
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should be(roles.map(address).toSet)
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should ===(roles.map(address).toSet)
}
enterBarrier("after-3")
@ -126,9 +126,9 @@ abstract class ClusterConsistentHashingRouterSpec extends MultiNodeSpec(ClusterC
props(Props[Echo]),
"router2")
// it may take some time until router receives cluster member events
awaitAssert { currentRoutees(router2).size should be(6) }
awaitAssert { currentRoutees(router2).size should ===(6) }
val routees = currentRoutees(router2)
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should be(roles.map(address).toSet)
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should ===(roles.map(address).toSet)
}
enterBarrier("after-4")
@ -168,9 +168,9 @@ abstract class ClusterConsistentHashingRouterSpec extends MultiNodeSpec(ClusterC
def assertHashMapping(router: ActorRef): Unit = {
// it may take some time until router receives cluster member events
awaitAssert { currentRoutees(router).size should be(6) }
awaitAssert { currentRoutees(router).size should ===(6) }
val routees = currentRoutees(router)
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should be(roles.map(address).toSet)
routees.map { case ActorRefRoutee(ref) fullAddress(ref) }.toSet should ===(roles.map(address).toSet)
router ! "a"
val destinationA = expectMsgType[ActorRef]