Skip to content

Commit

Permalink
fix: missing check in Int. Test
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-cialini committed Nov 16, 2023
1 parent 11f4ac3 commit d231d90
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ Then('the receipt has not the status {string}', function (targetStatus) {
Given('a random receipt with id {string} stored with status FAILED', async function (id) {
this.eventId = id;
// prior cancellation to avoid dirty cases
await updateReceiptToFailed(this.eventId);
document = await getDocumentByIdFromReceiptsDatastore(eventId);
await updateReceiptToFailed(document.resources[0].id, this.eventId);
});

When('HTTP recovery request is called', async function () {
Expand Down

0 comments on commit d231d90

Please sign in to comment.