Skip to content

Feature/test seqeuncers1000 #815

Feature/test seqeuncers1000

Feature/test seqeuncers1000 #815

GitHub Actions / E2E report yarn test-sequencerStaking failed Dec 8, 2024 in 1s

E2E report yarn test-sequencerStaking ❌

Tests failed

❌ e2eTests/reports/junit.xml-8f934a80-b584-11ef-bfcb-b5a7b71e4069.xml

12 tests were completed in 2472s with 10 passed, 1 failed and 1 skipped.

Test suite Passed Failed Skipped Time
test/sequential/sequencerStaking.rules.test.ts 5✅ 1❌ 1⚪ 2316s
test/sequential/sequencerStaking.sequencerJoining.test.ts 5✅ 156s

❌ test/sequential/sequencerStaking.rules.test.ts

sequencerStaking
  ✅ An already collator joining as sequencer - On Active
  ✅ Active Sequencer - mint less than min amount -> Not in active
  ✅ Active Sequencer -> Active -> pending update -> Can not leave
  ❌ Only a selected sequencer can submit updates
	Error: thrown: Object {
  ✅ A selected sequencer with read rights can submit updates
  ✅ An active sequencer with cancel rights can submit cancels
  ⚪ Max sequencer is set for both chains - fix when BugFix

✅ test/sequential/sequencerStaking.sequencerJoining.test.ts

✅ GIVEN User provides a stake by using StakeOnly action THEN User is not a sequencer
✅ GIVEN User provides a stake by using StakeAndJoinActiveSet action AND his stake < minimalStakeAmount THEN return error
✅ GIVEN User provides a stake by using StakeAndJoinActiveSet action AND his stake > minimalStakeAmount THEN User is a sequencer
✅ GIVEN User provides a stake by using StakeOnly action And User use rejoinActiveSequencer function THEN User is a sequencer
✅ Happy path - A user can join and leave sequencing

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-8f934a80-b584-11ef-bfcb-b5a7b71e4069.xml

See this annotation in the file changed.

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

test/sequential/sequencerStaking.rules.test.ts ► sequencerStaking ► Only a selected sequencer can submit updates

Failed test found in:
  e2eTests/reports/junit.xml-8f934a80-b584-11ef-bfcb-b5a7b71e4069.xml
Error:
  Error: thrown: Object {
Raw output
Error: thrown: Object {
  "data": "1010: Invalid Transaction: Inability to pay some fees , e.g. account balance too low",
}
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/sequencerStaking.rules.test.ts:184:3
    at _dispatchDescribe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:91:26)
    at describe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:55:5)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/sequencerStaking.rules.test.ts:63:1
    at SourceTextModule.evaluate (node:internal/vm/module:226:23)
    at Runtime.linkAndEvaluateModule (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runtime/build/index.js:710:20)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:75:5)
    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)