difftreelog
fix(test) wait for valid error
in: master
1 file changed
tests/src/.outdated/scheduler.test.tsdiffbeforeafterboth264 const collectionId = await createCollectionExpectSuccess();264 const collectionId = await createCollectionExpectSuccess();265 const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT');265 const tokenId = await createItemExpectSuccess(alice, collectionId, 'NFT');266 const scheduledId = makeScheduledId();266 const scheduledId = makeScheduledId();267 const waitForBlocks = 3;267 const waitForBlocks = 8;268268269 const amount = 1;269 const amount = 1;270270271 await scheduleTransferExpectSuccess(api, collectionId, tokenId, alice, bob, amount, waitForBlocks, scheduledId);271 await scheduleTransferExpectSuccess(api, collectionId, tokenId, alice, bob, amount, waitForBlocks, scheduledId);272 await expect(cancelScheduled(api, bob, scheduledId)).to.be.rejected;272 await expect(cancelScheduled(api, bob, scheduledId)).to.be.rejectedWith(/BadOrigin/);273273274 await waitNewBlocks(waitForBlocks);274 await waitNewBlocks(waitForBlocks);275275