difftreelog
fix use playgrounds wait
in: master
1 file changed
tests/src/.outdated/scheduler.test.tsdiffbeforeafterboth15// 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/>.161617import {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';989599 await helper.scheduler.cancelScheduled(alice, scheduledId);96 await helper.scheduler.cancelScheduled(alice, scheduledId);10097101 await waitNewBlocks(waitForBlocks + 1);98 await helper.wait.newBlocks(waitForBlocks + 1);10299103 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);277274278 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 }