--- a/tests/src/eth/scheduling.test.ts +++ b/tests/src/eth/scheduling.test.ts @@ -16,10 +16,16 @@ import {expect} from 'chai'; import {EthUniqueHelper, itEth} from './util/playgrounds'; -import {Pallets} from '../util/playgrounds'; +import {Pallets, usingPlaygrounds} from '../util/playgrounds'; describe('Scheduing EVM smart contracts', () => { + before(async () => { + await usingPlaygrounds(async (helper) => { + await helper.testUtils.enable(); + }); + }); + itEth.ifWithPallets('Successfully schedules and periodically executes an EVM contract', [Pallets.Scheduler], async ({helper, privateKey}) => { const alice = privateKey('//Alice'); --- a/tests/src/scheduler.test.ts +++ b/tests/src/scheduler.test.ts @@ -24,10 +24,12 @@ let charlie: IKeyringPair; before(async () => { - await usingPlaygrounds(async (_, privateKeyWrapper) => { + await usingPlaygrounds(async (helper, privateKeyWrapper) => { alice = privateKeyWrapper('//Alice'); bob = privateKeyWrapper('//Bob'); charlie = privateKeyWrapper('//Charlie'); + + await helper.testUtils.enable(); }); }); @@ -414,9 +416,11 @@ let bob: IKeyringPair; before(async () => { - await usingPlaygrounds(async (_, privateKeyWrapper) => { + await usingPlaygrounds(async (helper, privateKeyWrapper) => { alice = privateKeyWrapper('//Alice'); bob = privateKeyWrapper('//Bob'); + + await helper.testUtils.enable(); }); });