git.delta.rocks / unique-network / refs/commits / 4b777f2cea2e

difftreelog

fix use playgrounds wait

Daniel Shiposha2022-09-26parent: #dc42d67.patch.diff
in: master

1 file changed

modifiedtests/src/.outdated/scheduler.test.tsdiffbeforeafterboth
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
1616
17import {17import {UNIQUE} from './util/helpers';
18 UNIQUE,
19 waitNewBlocks,
20} from './util/helpers';
21import {expect, itSub, Pallets, usingPlaygrounds} from './util/playgrounds';18import {expect, itSub, Pallets, usingPlaygrounds} from './util/playgrounds';
22import {IKeyringPair} from '@polkadot/types/types';19import {IKeyringPair} from '@polkadot/types/types';
9895
99 await helper.scheduler.cancelScheduled(alice, scheduledId);96 await helper.scheduler.cancelScheduled(alice, scheduledId);
10097
101 await waitNewBlocks(waitForBlocks + 1);98 await helper.wait.newBlocks(waitForBlocks + 1);
10299
103 expect(await token.getOwner()).to.be.deep.equal({Substrate: alice.address});100 expect(await token.getOwner()).to.be.deep.equal({Substrate: alice.address});
104 });101 });
276 .to.be.equal(finalTestVal);273 .to.be.equal(finalTestVal);
277274
278 for (let i = 1; i < periodic.repetitions; i++) {275 for (let i = 1; i < periodic.repetitions; i++) {
279 await waitNewBlocks(periodic.period);276 await helper.wait.newBlocks(periodic.period);
280 expect((await helper.api!.query.testUtils.testValue()).toNumber())277 expect((await helper.api!.query.testUtils.testValue()).toNumber())
281 .to.be.equal(finalTestVal);278 .to.be.equal(finalTestVal);
282 }279 }