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
--- 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 <http://www.gnu.org/licenses/>.
 
-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();
     });
modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
11import {ICrossAccountId, TSigner} from './types';11import {ICrossAccountId, TSigner} from './types';
12import {FrameSystemEventRecord} from '@polkadot/types/lookup';12import {FrameSystemEventRecord} from '@polkadot/types/lookup';
13import {VoidFn} from '@polkadot/api/types';13import {VoidFn} from '@polkadot/api/types';
14import {Pallets} from '.';14import {Pallets} from '..';
1515
16export class SilentLogger {16export class SilentLogger {
17 log(_msg: any, _level: any): void { }17 log(_msg: any, _level: any): void { }