git.delta.rocks / unique-network / refs/commits / 65ae6b1a299c

difftreelog

Create donors for seqtest and change test scripts

Max Andreev2022-10-11parent: #ffb4250.patch.diff
in: master

3 files changed

modifiedtests/package.jsondiffbeforeafterboth
27 "lint": "eslint --ext .ts,.js src/",27 "lint": "eslint --ext .ts,.js src/",
28 "fix": "eslint --ext .ts,.js src/ --fix",28 "fix": "eslint --ext .ts,.js src/ --fix",
2929
30 "test": "mocha --parallel --timeout 9999999 -r ts-node/register './src/**/*.test.ts'",30 "test": "npm run testParallel && npm run testSequential",
31 "testParallel": "mocha --parallel --timeout 9999999 -r ts-node/register './src/**/*.test.ts'",
31 "testSequential": "mocha --timeout 9999999 -r ts-node/register './src/**/*.seqtest.ts'",32 "testSequential": "mocha --timeout 9999999 -r ts-node/register './src/**/*.seqtest.ts'",
33 "testDevnode": "mocha --timeout 9999999 -r ts-node/register './src/**/*test.ts'",
32 "testStructure": "mocha --parallel --timeout 9999999 -r ts-node/register ./**/nesting/**.test.ts",34 "testStructure": "mocha --parallel --timeout 9999999 -r ts-node/register ./**/nesting/**.test.ts",
33 "testEth": "mocha --parallel --timeout 9999999 -r ts-node/register './**/eth/**/*.test.ts'",35 "testEth": "mocha --parallel --timeout 9999999 -r ts-node/register './**/eth/**/*.test.ts'",
34 "testEthNesting": "mocha --parallel --timeout 9999999 -r ts-node/register './**/eth/nesting/**/*.test.ts'",36 "testEthNesting": "mocha --parallel --timeout 9999999 -r ts-node/register './**/eth/nesting/**/*.test.ts'",
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
1767/*export const describe_xcm = (1767export const describe_xcm = (
1768 process.env.RUN_XCM_TESTS1768 process.env.RUN_XCM_TESTS
1769 ? describe1769 ? describe
1770 : describe.skip1770 : describe.skip
1771);*/1771);
17721772
1773export async function waitNewBlocks(blocksCount = 1): Promise<void> {1773export async function waitNewBlocks(blocksCount = 1): Promise<void> {
1774 await usingApi(async (api) => {1774 await usingApi(async (api) => {
modifiedtests/src/util/playgrounds/globalSetup.tsdiffbeforeafterboth
63 let batchBalanceGrantedCounter = 0;63 let batchBalanceGrantedCounter = 0;
64 for (let i = 0; batchBalanceGrantedCounter < batchSize && b + i < filenames.length; i++) {64 for (let i = 0; batchBalanceGrantedCounter < batchSize && b + i < filenames.length; i++) {
65 const f = filenames[b + i];65 const f = filenames[b + i];
66 if (!f.endsWith('.test.ts') || f.includes('.outdated')) continue;66 if (!f.endsWith('.test.ts') && !f.endsWith('seqtest.ts') || f.includes('.outdated')) continue;
67 const account = await privateKey({filename: f, ignoreFundsPresence: true});67 const account = await privateKey({filename: f, ignoreFundsPresence: true});
68 const aliceBalance = await helper.balance.getSubstrate(account.address);68 const aliceBalance = await helper.balance.getSubstrate(account.address);
6969