Skip to content

adds a check that only single ferry can happen on a deposit request gasp-1652 #794

adds a check that only single ferry can happen on a deposit request gasp-1652

adds a check that only single ferry can happen on a deposit request gasp-1652 #794

GitHub Actions / E2E report yarn test-sequencerStaking failed Dec 5, 2024 in 0s

E2E report yarn test-sequencerStaking ❌

Tests failed

❌ e2eTests/reports/junit.xml-3b89e540-b316-11ef-bc43-13951e511fb0.xml

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

Test suite Passed Failed Skipped Time
test/sequential/sequencerStaking.rules.test.ts 5✅ 1❌ 1⚪ 1968s
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
  ✅ A selected sequencer with read rights can submit updates
  ❌ An active sequencer with cancel rights can submit cancels
	Error: expect(received).toContain(expected) // indexOf
  ⚪ 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-3b89e540-b316-11ef-bc43-13951e511fb0.xml

See this annotation in the file changed.

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

test/sequential/sequencerStaking.rules.test.ts ► sequencerStaking ► An active sequencer with cancel rights can submit cancels

Failed test found in:
  e2eTests/reports/junit.xml-3b89e540-b316-11ef-bc43-13951e511fb0.xml
Error:
  Error: expect(received).toContain(expected) // indexOf
Raw output
Error: expect(received).toContain(expected) // indexOf

Expected substring: "Ok"
Received string:    "{\"err\":{\"module\":{\"index\":7,\"error\":\"0x0f000000\"}}}"
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/utils/eventListeners.ts:139:29
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/utils/eventListeners.ts:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/eventListeners.ts:3:12)
    at waitSudoOperationSuccess (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/eventListeners.ts:107:12)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/utils/rollDown/Rolldown.ts:710:11
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/utils/rollDown/Rolldown.ts:7:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/rollDown/Rolldown.ts:3:12)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/utils/rollDown/Rolldown.ts:709:27
    at processTicksAndRejections (node:internal/process/task_queues:95:5)