From 56c909edd3765334895f47c7a5ca260f167e4b70 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 17 Aug 2022 15:12:24 +0000 Subject: [PATCH] fix(test): wait for valid error --- --- a/tests/src/.outdated/scheduler.test.ts +++ b/tests/src/.outdated/scheduler.test.ts @@ -264,12 +264,12 @@ const collectionId = await createCollectionExpectSuccess(); const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT'); const scheduledId = makeScheduledId(); - const waitForBlocks = 3; + const waitForBlocks = 8; const amount = 1; await scheduleTransferExpectSuccess(api, collectionId, tokenId, alice, bob, amount, waitForBlocks, scheduledId); - await expect(cancelScheduled(api, bob, scheduledId)).to.be.rejected; + await expect(cancelScheduled(api, bob, scheduledId)).to.be.rejectedWith(/BadOrigin/); await waitNewBlocks(waitForBlocks); -- gitstuff