difftreelog
tests(xcm): fix parallelization issues with xcm detection
in: master
3 files changed
tests/src/deprecated-helpers/helpers.tsdiffbeforeafterboth--- a/tests/src/deprecated-helpers/helpers.ts
+++ b/tests/src/deprecated-helpers/helpers.ts
@@ -1764,11 +1764,13 @@
return (await api.rpc.unique.collectionById(collectionId)).unwrap();
}
-export const describeXCM = (
- process.env.RUN_XCM_TESTS
+export async function describeXCM(title: string, fn: (this: Mocha.Suite) => void, opts: {skip?: boolean} = {}) {
+ (process.env.RUN_XCM_TESTS && !opts.skip
? describe
- : describe.skip
-);
+ : describe.skip)(title, fn);
+}
+
+describeXCM.skip = (name: string, fn: (this: Mocha.Suite) => void) => describeXCM(name, fn, {skip: true});
export async function waitNewBlocks(blocksCount = 1): Promise<void> {
await usingApi(async (api) => {
tests/src/xcm/xcmOpal.test.tsdiffbeforeafterboth6969707071 before(async () => {71 before(async () => {72 console.log('hey babe its opal');72 await usingApi(async (api, privateKeyWrapper) => {73 await usingApi(async (api, privateKeyWrapper) => {73 alice = privateKeyWrapper('//Alice');74 alice = privateKeyWrapper('//Alice');74 bob = privateKeyWrapper('//Bob'); // funds donor75 bob = privateKeyWrapper('//Bob'); // funds donortests/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;