beatrix: Fix void ordering in test after fix introduced in
@@ -310,21 +310,22 @@ public class TestWithInvoiceHardening extends TestIntegrationBase {
busHandler.waitAndIgnoreEvents(3000);
busHandler.pushExpectedEvents(NextEvent.INVOICE_ADJUSTMENT);
- invoiceUserApi.voidInvoice(firstInvoice.getId(), callContext);
+ invoiceUserApi.voidInvoice(fourthInvoice.getId(), callContext);
assertListenerStatus();
busHandler.pushExpectedEvents(NextEvent.INVOICE_ADJUSTMENT);
- invoiceUserApi.voidInvoice(secondInvoice.getId(), callContext);
+ invoiceUserApi.voidInvoice(thirdInvoice.getId(), callContext);
assertListenerStatus();
busHandler.pushExpectedEvents(NextEvent.INVOICE_ADJUSTMENT);
- invoiceUserApi.voidInvoice(thirdInvoice.getId(), callContext);
+ invoiceUserApi.voidInvoice(secondInvoice.getId(), callContext);
assertListenerStatus();
busHandler.pushExpectedEvents(NextEvent.INVOICE_ADJUSTMENT);
- invoiceUserApi.voidInvoice(fourthInvoice.getId(), callContext);
+ invoiceUserApi.voidInvoice(firstInvoice.getId(), callContext);
assertListenerStatus();
+
// This remove the __PARK__ tag and fixes the state !
busHandler.pushExpectedEvents(NextEvent.TAG, NextEvent.NULL_INVOICE);
try {
