git.delta.rocks / unique-network / refs/commits / 56c909edd376

difftreelog

fix(test) wait for valid error

Daniel Shiposha2022-08-17parent: #c96a700.patch.diff
in: master

1 file changed

modifiedtests/src/.outdated/scheduler.test.tsdiffbeforeafterboth
264 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;
268268
269 const amount = 1;269 const amount = 1;
270270
271 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/);
273273
274 await waitNewBlocks(waitForBlocks);274 await waitNewBlocks(waitForBlocks);
275275