git.delta.rocks / unique-network / refs/commits / 88cc507e215e

difftreelog

tests(xcm): fix parallelization issues with xcm detection

Fahrrader2022-10-14parent: #23067ec.patch.diff
in: master

3 files changed

modifiedtests/src/deprecated-helpers/helpers.tsdiffbeforeafterboth
1764 return (await api.rpc.unique.collectionById(collectionId)).unwrap();1764 return (await api.rpc.unique.collectionById(collectionId)).unwrap();
1765}1765}
17661766
1767export const describeXCM = (1767export async function describeXCM(title: string, fn: (this: Mocha.Suite) => void, opts: {skip?: boolean} = {}) {
1768 process.env.RUN_XCM_TESTS1768 (process.env.RUN_XCM_TESTS && !opts.skip
1769 ? describe1769 ? describe
1770 : describe.skip1770 : describe.skip)(title, fn);
1771);1771}
1772
1773describeXCM.skip = (name: string, fn: (this: Mocha.Suite) => void) => describeXCM(name, fn, {skip: true});
17721774
1773export async function waitNewBlocks(blocksCount = 1): Promise<void> {1775export async function waitNewBlocks(blocksCount = 1): Promise<void> {
1774 await usingApi(async (api) => {1776 await usingApi(async (api) => {
modifiedtests/src/xcm/xcmOpal.test.tsdiffbeforeafterboth
--- a/tests/src/xcm/xcmOpal.test.ts
+++ b/tests/src/xcm/xcmOpal.test.ts
@@ -69,6 +69,7 @@
 
 
   before(async () => {
+    console.log('hey babe its opal');
     await usingApi(async (api, privateKeyWrapper) => {
       alice = privateKeyWrapper('//Alice');
       bob = privateKeyWrapper('//Bob'); // funds donor
modifiedtests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth
--- a/tests/src/xcm/xcmQuartz.test.ts
+++ b/tests/src/xcm/xcmQuartz.test.ts
@@ -76,6 +76,7 @@
   let balanceQuartzForeignTokenFinal: bigint;
 
   before(async () => {
+    console.log('hey babe');
     await usingApi(async (api, privateKeyWrapper) => {
       const keyringSr25519 = new Keyring({type: 'sr25519'});
 
@@ -434,7 +435,6 @@
 });
 
 describeXCM('[XCM] Integration test: Exchanging QTZ with Moonriver', () => {
-
   // Quartz constants
   let quartzAlice: IKeyringPair;
   let quartzAssetLocation;