Skip to content

test: add finalise_twice, execute_twice, cancel_already_cancelled tests#200

Open
Julianemeka wants to merge 1 commit into
PrincessnJoy:mainfrom
Julianemeka:feature/issue-69-edge-case-tests
Open

test: add finalise_twice, execute_twice, cancel_already_cancelled tests#200
Julianemeka wants to merge 1 commit into
PrincessnJoy:mainfrom
Julianemeka:feature/issue-69-edge-case-tests

Conversation

@Julianemeka
Copy link
Copy Markdown

Summary

Adds three missing edge-case tests that verify the double-action guards fire correctly.

  • test_finalise_twice_fails — verifies finalise returns ProposalNotActive on a second call
  • test_execute_twice_fails — verifies execute returns ProposalNotPassed on a second call
  • test_cancel_already_cancelled_fails — verifies cancel returns ProposalNotActive on an already-cancelled proposal

What was tested

All three tests pass locally with cargo test --features testutils.

Closes #69

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Julianemeka Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No test for finalise called twice on the same proposal

1 participant