@@ -654,13 +654,14 @@ class MemoryQueueTests
654
654
fsm ! StateTimeout
655
655
expectMsg(Transition (fsm, Idle , Removed ))
656
656
queueRef.queue.length shouldBe 0
657
+ parent.expectMsg(queueRemovedMsg)
658
+
657
659
fsm ! message
658
660
659
661
// queue is timed out again in the Removed state.
660
662
parent.expectMsg(message)
661
663
662
664
fsm ! StateTimeout
663
- parent.expectMsg(queueRemovedMsg)
664
665
665
666
expectNoMessage()
666
667
@@ -1103,10 +1104,7 @@ class MemoryQueueTests
1103
1104
fsm ! message
1104
1105
probe.expectMsg(ActivationResponse .developerError(" nonExecutbleAction error" ))
1105
1106
1106
- parent.expectMsgAnyOf(
1107
- 2 * queueConfig.flushGrace + 5 .seconds,
1108
- QueueRemoved (testInvocationNamespace, fqn.toDocId.asDocInfo(action.rev), Some (leaderKey)),
1109
- Transition (fsm, Flushing , Removed ))
1107
+ parent.expectMsgAllOf(2 * queueConfig.flushGrace + 5 .seconds, queueRemovedMsg, Transition (fsm, Flushing , Removed ))
1110
1108
1111
1109
fsm ! StateTimeout
1112
1110
parent.expectMsg(queueRemovedMsg)
@@ -1409,10 +1407,7 @@ class MemoryQueueTests
1409
1407
1410
1408
val duration = FiniteDuration (queueConfig.maxBlackboxRetentionMs, MILLISECONDS ) + queueConfig.flushGrace
1411
1409
probe.expectMsg(duration, ActivationResponse .whiskError(" no available invokers" ))
1412
- parent.expectMsgAnyOf(
1413
- duration,
1414
- QueueRemoved (testInvocationNamespace, fqn.toDocId.asDocInfo(action.rev), Some (leaderKey)),
1415
- Transition (fsm, Flushing , Removed ))
1410
+ parent.expectMsgAllOf(duration, queueRemovedMsg, Transition (fsm, Flushing , Removed ))
1416
1411
fsm ! QueueRemovedCompleted
1417
1412
parent.expectTerminated(fsm)
1418
1413
0 commit comments