Skip to content

fix: run 'mutliswap_buy_W' test concurently (#610) #218

fix: run 'mutliswap_buy_W' test concurently (#610)

fix: run 'mutliswap_buy_W' test concurently (#610) #218

GitHub Actions / E2E report yarn test-poolliquidity succeeded Oct 4, 2023 in 1s

E2E report yarn test-poolliquidity ✔️

Tests passed successfully

✔️ e2eTests/reports/junit-d4cfd050-62f6-11ee-b294-f5a1a4157a85.xml

6 tests were completed in 734s with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/parallel/xyk-pallet.API.poolLiqidity.activateLiqudity.test.ts 1✔️ 287s
test/parallel/xyk-pallet.API.poolLiqudity.burnTokens.test.ts 2✔️ 431s
test/parallel/xyk-pallet.API.poolLiqudity.multipleUserRewards.test.ts 2✔️ 443s
test/parallel/xyk-pallet.API.poolLiqudity.sepClaimRewards.test.ts 1✔️ 731s

✔️ test/parallel/xyk-pallet.API.poolLiqidity.activateLiqudity.test.ts

✔️ Check that a user that deactivate some tokens, put liquidity tokens from frozen to free, then activate some tokens and put liquidity tokens from free to frozen

✔️ test/parallel/xyk-pallet.API.poolLiqudity.burnTokens.test.ts

✔️ Check that a user can burn tokens when they are activated, and when burning the free, those subtracted first
✔️ Check that a user can burn some tokens on a non-promoted pool

✔️ test/parallel/xyk-pallet.API.poolLiqudity.multipleUserRewards.test.ts

✔️ Users minted a different number of tokens THEN they receive an equivalent amount of rewards
✔️ One user mints X tokens, other mints those X tokens but splitted in 5 mints at the same block, rewards are equal

✔️ test/parallel/xyk-pallet.API.poolLiqudity.sepClaimRewards.test.ts

✔️ One user claim all the rewards on every session and other user claim them at the 3rd session, the sum of rewards are equal