fix race condition in ReplicatorDeltaSpec (#22737)

This commit is contained in:
gosubpl 2017-04-21 16:18:49 +02:00
parent 082507973a
commit 0bbb6900d7

View file

@ -241,6 +241,7 @@ class ReplicatorDeltaSpec extends MultiNodeSpec(ReplicatorDeltaSpec) with STMult
val p = TestProbe() val p = TestProbe()
deltaReplicator.tell(Get(KeyD, ReadLocal), p.ref) deltaReplicator.tell(Get(KeyD, ReadLocal), p.ref)
p.expectMsgType[GetSuccess[ORSet[String]]].dataValue.elements should ===(Set("a", "A")) p.expectMsgType[GetSuccess[ORSet[String]]].dataValue.elements should ===(Set("a", "A"))
enterBarrier("read-1")
// and also when doing several at the same time (deltas may be reordered) and then we // and also when doing several at the same time (deltas may be reordered) and then we
// retry with full state to sort it out // retry with full state to sort it out