From ea487b7d716493ffd8a2ec75ca5361c048a9b809 Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Mon, 24 Oct 2022 13:01:29 +0000 Subject: [PATCH] fix: scheduler tests after rebase --- --- a/tests/src/scheduler.test.ts +++ b/tests/src/scheduler.test.ts @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Unique Network. If not, see . -import {expect, itSub, Pallets, usingPlaygrounds} from './util/playgrounds'; +import {expect, itSub, Pallets, usingPlaygrounds} from './util'; import {IKeyringPair} from '@polkadot/types/types'; import {DevUniqueHelper} from './util/playgrounds/unique.dev'; @@ -25,9 +25,9 @@ before(async () => { await usingPlaygrounds(async (helper, privateKeyWrapper) => { - alice = privateKeyWrapper('//Alice'); - bob = privateKeyWrapper('//Bob'); - charlie = privateKeyWrapper('//Charlie'); + alice = await privateKeyWrapper('//Alice'); + bob = await privateKeyWrapper('//Bob'); + charlie = await privateKeyWrapper('//Charlie'); await helper.testUtils.enable(); }); @@ -417,8 +417,8 @@ before(async () => { await usingPlaygrounds(async (helper, privateKeyWrapper) => { - alice = privateKeyWrapper('//Alice'); - bob = privateKeyWrapper('//Bob'); + alice = await privateKeyWrapper('//Alice'); + bob = await privateKeyWrapper('//Bob'); await helper.testUtils.enable(); }); --- a/tests/src/util/playgrounds/unique.dev.ts +++ b/tests/src/util/playgrounds/unique.dev.ts @@ -11,7 +11,7 @@ import {ICrossAccountId, TSigner} from './types'; import {FrameSystemEventRecord} from '@polkadot/types/lookup'; import {VoidFn} from '@polkadot/api/types'; -import {Pallets} from '.'; +import {Pallets} from '..'; export class SilentLogger { log(_msg: any, _level: any): void { } -- gitstuff