Skip to content

Use -unrestricted for e2e non-fast tests #769

Use -unrestricted for e2e non-fast tests

Use -unrestricted for e2e non-fast tests #769

GitHub Actions / E2E report yarn test-sdk failed Dec 2, 2024 in 1s

E2E report yarn test-sdk ❌

Tests failed

❌ e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

48 tests were completed in 841s with 35 passed, 13 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/parallel/sdk.API.batch.test.ts 7✅ 233s
test/parallel/sdk.API.getInfo.test.ts 16✅ 353s
test/parallel/sdk.API.submitableExtrinsic.test.ts 4✅ 5❌ 275s
test/parallel/sdk.API.utils.test.ts 8❌ 197s
test/parallel/xyk-sdk.API.activateLiqudity.test.ts 2✅ 227s
test/sequential/sdk.API.claimRewards.test.ts 6✅ 839s

✅ test/parallel/sdk.API.batch.test.ts

✅ Check that when we are using SDK batch function and the first call finishes with error next call doesn't finish
✅ Check that when we are using SDK batch function and the second call finishes with error first call finishes successful
✅ Happy path - batch
✅ WHEN call batchAll where one item is failed THEN all entire transactions will rollback and fail
✅ Happy path - batchAll
✅ WHEN call forceBatch where one item is failed THEN check completed and failed items
✅ Happy path - forceBatch

✅ test/parallel/sdk.API.getInfo.test.ts

✅ getAmountOfTokensInPool return poolAmount AND in reverse list of token we recived equal result
✅ check parameters of getInvestedPools function
✅ check parameters of getLiquidityTokenIds function
✅ check parameters of getPool function
✅ check parameters of getPools function
✅ check parameters of getTotalIssuance functions
✅ check parameters of getChain function
✅ check parameters of getNodeName function
✅ check parameters of getNodeVersion function
✅ check waitForNewBlock
✅ check calculateMintingFutureRewards
✅ check getAssetsInfo
✅ check getLiquidityTokens
✅ check getOwnedTokens
✅ check getTokenInfo
✅ sdk - filter deactivated pools on node

❌ test/parallel/sdk.API.submitableExtrinsic.test.ts

✅ activate some Liquidity using SDK THEN claim rewards THEN deactivate Liquidity
✅ check claimRewards
❌ check mintLiquidity
	TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
❌ check burnLiquidity
	TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
❌ check createPool
	TypeError: Cannot read properties of undefined (reading 'createPool')
❌ check multiswapBuyAsset
	TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
❌ check multiswapSellAsset
	TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
✅ check transferTokens
✅ check transferAllTokens

❌ test/parallel/sdk.API.utils.test.ts

❌ GIVEN buyAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
	TypeError: Cannot read properties of undefined (reading 'buyAsset')
❌ GIVEN buyAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
	TypeError: Cannot read properties of undefined (reading 'buyAsset')
❌ GIVEN sellAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
❌ GIVEN sellAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
	TypeError: Cannot read properties of undefined (reading 'sellAsset')
❌ GIVEN multiSwapBuy WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
	TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
❌ GIVEN multiSwapBuy WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
	TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
❌ GIVEN multiSwapSell WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true
	TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
❌ GIVEN multiSwapSell WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false
	TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')

✅ test/parallel/xyk-sdk.API.activateLiqudity.test.ts

✅ Given a user hame some liquidity token THEN he activate them THEN deactivate
✅ Activate liquidity and claim rewards

✅ test/sequential/sdk.API.claimRewards.test.ts

✅ GIVEN an user has available some rewards in one pool WHEN claims all rewards THEN the user gets the rewards for that pool
✅ GIVEN an user has available some rewards in two pools WHEN claims all rewards THEN the user gets the rewards for thats pools
✅ GIVEN an user has available some rewards in two pools one deactivated WHEN claims all rewards THEN the user gets the rewards for thats pools
✅ GIVEN a user that has available some rewards in ten pools max for automatically claiming WHEN claims all rewards THEN the user gets the rewards for thats pools
✅ GIVEN a user has available some rewards in over ten pools WHEN claims all rewards THEN the error is received
✅ GIVEN a user has available some rewards in over ten pools AND this user claims some pool manually WHEN claims all rewards THEN the user gets the rewards for all remaining pools

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check mintLiquidity

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'mintLiquidity')
    at mintLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3854:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check burnLiquidity

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
Raw output
TypeError: Cannot read properties of undefined (reading 'burnLiquidity')
    at burnLiquidity (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3805:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check createPool

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'createPool')
Raw output
TypeError: Cannot read properties of undefined (reading 'createPool')
    at createPool (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:3882:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check multiswapBuyAsset

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
    at multiswapBuyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:4633:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.submitableExtrinsic.test.ts ► check multiswapSellAsset

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'multiswapSellAsset')
    at multiswapSellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:4648:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.utils.test.ts ► GIVEN buyAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'buyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'buyAsset')
    at Function.buyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:63:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:81:9
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:3:12)
    at Object.<anonymous> (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:78:126)
    at Promise.then.completed (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:126:9)
    at run (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.utils.test.ts ► GIVEN buyAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'buyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'buyAsset')
    at Function.buyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:63:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:102:9
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.utils.test.ts ► GIVEN sellAsset WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'sellAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'sellAsset')
    at Function.sellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:49:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:118:9
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:3:12)
    at Object.<anonymous> (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:115:127)
    at Promise.then.completed (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:298:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/utils.js:231:10)
    at _callCircusTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:316:40)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at _runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:252:3)
    at _runTestsForDescribeBlock (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:126:9)
    at run (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/run.js:71:3)
    at runAndTransformResultsToJestFormat (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:444:34)
    at Object.worker (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/testWorker.js:106:12)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.utils.test.ts ► GIVEN sellAsset WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'sellAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'sellAsset')
    at Function.sellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/xyk.ts:49:23)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:139:9
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/parallel/sdk.API.utils.test.ts:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.utils.test.ts ► GIVEN multiSwapBuy WHEN operation is confirmed AND isMultiSwapAssetTransactionSuccessful THEN it returns true

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
    at multiswapBuyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:4633:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-sdk

test/parallel/sdk.API.utils.test.ts ► GIVEN multiSwapBuy WHEN operation is failed AND isMultiSwapAssetTransactionSuccessful THEN it returns false

Failed test found in:
  e2eTests/reports/junit.xml-0e006ea0-b0a0-11ef-90cb-5f8ce585bb9a.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
Raw output
TypeError: Cannot read properties of undefined (reading 'multiswapBuyAsset')
    at multiswapBuyAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/gasp-sdk/index.js:4633:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)