Use awaitAssert in cluster tests, see #3168

This commit is contained in:
Patrik Nordwall 2013-03-24 22:01:57 +01:00
parent 118917d2be
commit 806fc0c525
20 changed files with 119 additions and 144 deletions

View file

@ -64,7 +64,7 @@ abstract class NodeLeavingAndExitingSpec
enterBarrier("second-left")
val expectedAddresses = roles.toSet map address
awaitCond(clusterView.members.map(_.address) == expectedAddresses)
awaitAssert(clusterView.members.map(_.address) must be(expectedAddresses))
// Verify that 'second' node is set to EXITING
exitingLatch.await