git.delta.rocks / unique-network / refs/commits / ea487b7d7164

difftreelog

fix scheduler tests after rebase

Daniel Shiposha2022-10-24parent: #be30378.patch.diff
in: master

2 files changed

modifiedtests/src/scheduler.test.tsdiffbeforeafterboth
14// You should have received a copy of the GNU General Public License14// You should have received a copy of the GNU General Public License
15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.15// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
1616
17import {expect, itSub, Pallets, usingPlaygrounds} from './util/playgrounds';17import {expect, itSub, Pallets, usingPlaygrounds} from './util';
18import {IKeyringPair} from '@polkadot/types/types';18import {IKeyringPair} from '@polkadot/types/types';
19import {DevUniqueHelper} from './util/playgrounds/unique.dev';19import {DevUniqueHelper} from './util/playgrounds/unique.dev';
2020
2525
26 before(async () => {26 before(async () => {
27 await usingPlaygrounds(async (helper, privateKeyWrapper) => {27 await usingPlaygrounds(async (helper, privateKeyWrapper) => {
28 alice = privateKeyWrapper('//Alice');28 alice = await privateKeyWrapper('//Alice');
29 bob = privateKeyWrapper('//Bob');29 bob = await privateKeyWrapper('//Bob');
30 charlie = privateKeyWrapper('//Charlie');30 charlie = await privateKeyWrapper('//Charlie');
3131
32 await helper.testUtils.enable();32 await helper.testUtils.enable();
33 });33 });
417417
418 before(async () => {418 before(async () => {
419 await usingPlaygrounds(async (helper, privateKeyWrapper) => {419 await usingPlaygrounds(async (helper, privateKeyWrapper) => {
420 alice = privateKeyWrapper('//Alice');420 alice = await privateKeyWrapper('//Alice');
421 bob = privateKeyWrapper('//Bob');421 bob = await privateKeyWrapper('//Bob');
422422
423 await helper.testUtils.enable();423 await helper.testUtils.enable();
424 });424 });
modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
--- 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 { }