difftreelog
tests(xcm): fix parallelization issues with xcm detection
in: master
3 files changed
tests/src/deprecated-helpers/helpers.tsdiffbeforeafterboth1764 return (await api.rpc.unique.collectionById(collectionId)).unwrap();1764 return (await api.rpc.unique.collectionById(collectionId)).unwrap();1765}1765}176617661767export 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.skip1769 ? describe1769 ? describe1770 : describe.skip1770 : describe.skip)(title, fn);1771);1771}17721773describeXCM.skip = (name: string, fn: (this: Mocha.Suite) => void) => describeXCM(name, fn, {skip: true});177217741773export 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) => {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.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