Durable pruning fail fix #29270

Failed once when the new cluster node had not joined the cluster yet, so start with waiting for that.
This commit is contained in:
Johan Andrén 2020-07-13 16:31:11 +02:00
parent e4b4fc6d8c
commit 0921786512

View file

@ -169,6 +169,11 @@ class DurablePruningSpec extends MultiNodeSpec(DurablePruningSpec) with STMultiN
val probe3 = TestProbe()(sys3)
cluster3.join(node(first).address)
awaitAssert({
cluster.state.members.exists(m =>
m.uniqueAddress == cluster3.selfUniqueAddress && m.status == MemberStatus.Up) should ===(true)
}, 10.seconds)
within(10.seconds) {
var values = Set.empty[Int]
awaitAssert {