fix race condition in WriteAggregatorSpec, #25581 (#28242)

* sometimes failed: "WriteAggregator with delta must timeout when less than required acks"
* the DeltaNack will trigger immedediate send of Write
* seems to be a race condition of when the probe is receiving the Write
  from the DeltaNack vs the last expected DeltaPropagation
This commit is contained in:
Patrik Nordwall 2019-11-25 17:06:27 +01:00 committed by Arnout Engelen
parent 2ef50cb054
commit bb99bdb02f

View file

@ -354,9 +354,12 @@ class WriteAggregatorSpec extends AkkaSpec(s"""
probe.expectMsgType[DeltaPropagation]
probe.lastSender ! WriteAck
probe.expectMsgType[DeltaPropagation]
// no reply
probe.expectMsgType[DeltaPropagation]
// nack
probe.lastSender ! DeltaNack
probe.expectMsgType[DeltaPropagation]
// the nack will triggger an immediate Write
probe.expectMsgType[Write]
// no reply
// only 1 ack so we expect 3 full state Write