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
6969
7070
71 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 donor
modifiedtests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth
76 let balanceQuartzForeignTokenFinal: bigint;76 let balanceQuartzForeignTokenFinal: bigint;
7777
78 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