git.delta.rocks / unique-network / refs/commits / 304c954b1a77

difftreelog

fix enable test-pallet in tests

Daniel Shiposha2022-10-11parent: #85e3c44.patch.diff
in: master

2 files changed

modifiedtests/src/eth/scheduling.test.tsdiffbeforeafterboth
1616
17import {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';
2020
21describe('Scheduing EVM smart contracts', () => {21describe('Scheduing EVM smart contracts', () => {
22
23 before(async () => {
24 await usingPlaygrounds(async (helper) => {
25 await helper.testUtils.enable();
26 });
27 });
2228
23 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');
modifiedtests/src/scheduler.test.tsdiffbeforeafterboth
24 let charlie: IKeyringPair;24 let charlie: IKeyringPair;
2525
26 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');
31
32 await helper.testUtils.enable();
31 });33 });
32 });34 });
3335
414 let bob: IKeyringPair;416 let bob: IKeyringPair;
415417
416 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');
422
423 await helper.testUtils.enable();
420 });424 });
421 });425 });
422426