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.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
tests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth76 let balanceQuartzForeignTokenFinal: bigint;76 let balanceQuartzForeignTokenFinal: bigint;777778 before(async () => {78 before(async () => {79 console.log('hey babe');79 await usingApi(async (api, privateKeyWrapper) => {80 await usingApi(async (api, privateKeyWrapper) => {80 const keyringSr25519 = new Keyring({type: 'sr25519'});81 const keyringSr25519 = new Keyring({type: 'sr25519'});8182