difftreelog
fix enable test-pallet in tests
in: master
2 files changed
tests/src/eth/scheduling.test.tsdiffbeforeafterboth--- 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');
tests/src/scheduler.test.tsdiffbeforeafterboth24 let charlie: IKeyringPair;24 let charlie: IKeyringPair;252526 before(async () => {26 before(async () => {27 await usingPlaygrounds(async (_, privateKeyWrapper) => {27 await usingPlaygrounds(async (helper, privateKeyWrapper) => {28 alice = privateKeyWrapper('//Alice');28 alice = privateKeyWrapper('//Alice');29 bob = privateKeyWrapper('//Bob');29 bob = privateKeyWrapper('//Bob');30 charlie = privateKeyWrapper('//Charlie');30 charlie = privateKeyWrapper('//Charlie');3132 await helper.testUtils.enable();31 });33 });32 });34 });3335414 let bob: IKeyringPair;416 let bob: IKeyringPair;415417416 before(async () => {418 before(async () => {417 await usingPlaygrounds(async (_, privateKeyWrapper) => {419 await usingPlaygrounds(async (helper, privateKeyWrapper) => {418 alice = privateKeyWrapper('//Alice');420 alice = privateKeyWrapper('//Alice');419 bob = privateKeyWrapper('//Bob');421 bob = privateKeyWrapper('//Bob');422423 await helper.testUtils.enable();420 });424 });421 });425 });422426