Skip to content

test: add missing coverage for treasury pause guard and plans controller - #2093

Merged
aji70 merged 2 commits into
MyFanss:mainfrom
valoryyaa-byte:fix/2048-2047-test-coverage
Oct 20, 2026
Merged

aji70 merged 2 commits into
MyFanss:mainfrom
valoryyaa-byte:fix/2048-2047-test-coverage

Conversation

@valoryyaa-byte

Copy link
Copy Markdown
Contributor

Summary

  • Adds a Rust test asserting the treasury contract's pause guard blocks both deposit and withdraw while paused, and that normal operation resumes after unpausing. Also adds the missing pause check to withdraw itself, which previously had no pause guard despite the test expectations.
  • Adds a unit spec for PlansController covering request parsing (route/query params, body dto, authenticated user id) and delegation to PlansService for create, list, findOne, update, and remove.

Closes #2048
Closes #2047

@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@valoryyaa-byte 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

2 participants