Fix/rewards market GASP-1681 (#855) #809
E2E report yarn test-seqgasless ❌
❌ e2eTests/reports/junit.xml-78a6fcb0-b3ca-11ef-8599-13b8a7ad4821.xml
7 tests were completed in 324s with 5 passed, 2 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
test/sequential/feeLock.API.config.test.ts | 4✅ | 216s | ||
test/sequential/feeLock.API.feePayment.sequential.test.ts | 1✅ | 2❌ | 108s |
✅ test/sequential/feeLock.API.config.test.ts
✅ gasless- GIVEN a non sudo user WHEN feeLock configuration extrinsic is submitted THEN it fails with RequireSudo
✅ gasless- GIVEN an empty feeLock configuration (all options empty) WHEN sudo submit the extrinsic THEN Tx fails because insufficient params
✅ gasless- GIVEN a feeLock WHEN periodLength and feeLockAmount are set THEN extrinsic succeed and feeLock is correctly configured
✅ gasless- Changing feeLock config parameter on the fly is works robustly. Either automatic or manual unlocks the tokens
❌ test/sequential/feeLock.API.feePayment.sequential.test.ts
❌ gasless- GIVEN a feeLock configured (only Time and Amount ) WHEN the user swaps AND the user has not enough MGAs and has enough TURs THEN the extrinsic fails on submission
Error: expect(received).rejects.toThrow(expected)
❌ gasless- GIVEN a feeLock configured (only Time and Amount ) WHEN the user swaps AND the user does not have enough MGAs THEN the extrinsic fails on submission
Error: expect(received).rejects.toThrow(expected)
✅ gasless- Given a feeLock correctly configured (only Time and Amount ) WHEN the user swaps AND the user has enough MGAs THEN the extrinsic is correctly submitted
Annotations
Check failure on line 0 in e2eTests/reports/junit.xml-78a6fcb0-b3ca-11ef-8599-13b8a7ad4821.xml
github-actions / E2E report yarn test-seqgasless
test/sequential/feeLock.API.feePayment.sequential.test.ts ► gasless- GIVEN a feeLock configured (only Time and Amount ) WHEN the user swaps AND the user has not enough MGAs and has enough TURs THEN the extrinsic fails on submission
Failed test found in:
e2eTests/reports/junit.xml-78a6fcb0-b3ca-11ef-8599-13b8a7ad4821.xml
Error:
Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)
Expected substring: "1010: Invalid Transaction: Fee lock processing has failed either due to not enough funds to reserve or an unexpected error"
Received message: "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low"
45 | ).catch((reason) => {
46 | exception = true;
> 47 | throw new Error(reason.data);
| ^
48 | }),
49 | ).rejects.toThrow(reason);
50 |
at test/sequential/feeLock.API.feePayment.sequential.test.ts:47:13
at Object.toThrow (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/expect/build/index.js:218:22)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:49:13
at Generator.next (<anonymous>)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:7:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:3:12)
at checkErrorSellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:36:12)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:98:9
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Check failure on line 0 in e2eTests/reports/junit.xml-78a6fcb0-b3ca-11ef-8599-13b8a7ad4821.xml
github-actions / E2E report yarn test-seqgasless
test/sequential/feeLock.API.feePayment.sequential.test.ts ► gasless- GIVEN a feeLock configured (only Time and Amount ) WHEN the user swaps AND the user does not have enough MGAs THEN the extrinsic fails on submission
Failed test found in:
e2eTests/reports/junit.xml-78a6fcb0-b3ca-11ef-8599-13b8a7ad4821.xml
Error:
Error: expect(received).rejects.toThrow(expected)
Raw output
Error: expect(received).rejects.toThrow(expected)
Expected substring: "1010: Invalid Transaction: Fee lock processing has failed either due to not enough funds to reserve or an unexpected error"
Received message: "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low"
45 | ).catch((reason) => {
46 | exception = true;
> 47 | throw new Error(reason.data);
| ^
48 | }),
49 | ).rejects.toThrow(reason);
50 |
at test/sequential/feeLock.API.feePayment.sequential.test.ts:47:13
at Object.toThrow (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/expect/build/index.js:218:22)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:49:13
at Generator.next (<anonymous>)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:7:71
at new Promise (<anonymous>)
at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:3:12)
at checkErrorSellAsset (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:36:12)
at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:112:9
at Generator.next (<anonymous>)
at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/feeLock.API.feePayment.sequential.test.ts:4:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)