difftreelog
fix enable test-pallet in tests
in: master
2 files changed
tests/src/eth/scheduling.test.tsdiffbeforeafterboth161617import {expect} from 'chai';17import {expect} from 'chai';18import {EthUniqueHelper, itEth} from './util/playgrounds';18import {EthUniqueHelper, itEth} from './util/playgrounds';19import {Pallets} from '../util/playgrounds';19import {Pallets, usingPlaygrounds} from '../util/playgrounds';202021describe('Scheduing EVM smart contracts', () => {21describe('Scheduing EVM smart contracts', () => {2223 before(async () => {24 await usingPlaygrounds(async (helper) => {25 await helper.testUtils.enable();26 });27 });222823 itEth.ifWithPallets('Successfully schedules and periodically executes an EVM contract', [Pallets.Scheduler], async ({helper, privateKey}) => {29 itEth.ifWithPallets('Successfully schedules and periodically executes an EVM contract', [Pallets.Scheduler], async ({helper, privateKey}) => {24 const alice = privateKey('//Alice');30 const alice = privateKey('//Alice');tests/src/scheduler.test.tsdiffbeforeafterboth--- 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();
});
});