Skip to content

test: add timeout validation and expiry edge-case tests#669

Merged
yahia008 merged 2 commits into
StellarCheckMate:mainfrom
Dafuriousis:feat/timeout-validation-tests
May 28, 2026
Merged

test: add timeout validation and expiry edge-case tests#669
yahia008 merged 2 commits into
StellarCheckMate:mainfrom
Dafuriousis:feat/timeout-validation-tests

Conversation

@Dafuriousis
Copy link
Copy Markdown
Contributor

closes #610
closes #611
closes #612
closes #613

  • Add InvalidTimeout (17) and TimeoutTooLarge (18) error variants
  • Validate set_match_timeout: reject 0 and values > MATCH_TTL_LEDGERS
  • test_expire_match_emits_expired_event: assert (match, expired) topics and match_id payload
  • test_lowering_timeout_after_match_creation_affects_expiry_immediately
  • test_set_match_timeout_max_u32_returns_timeout_too_large
  • test_set_match_timeout_zero_returns_invalid_timeout

- Add InvalidTimeout (17) and TimeoutTooLarge (18) error variants
- Validate set_match_timeout: reject 0 and values > MATCH_TTL_LEDGERS
- test_expire_match_emits_expired_event: assert (match, expired) topics and match_id payload
- test_lowering_timeout_after_match_creation_affects_expiry_immediately
- test_set_match_timeout_max_u32_returns_timeout_too_large
- test_set_match_timeout_zero_returns_invalid_timeout
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Dafuriousis 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

@yahia008 yahia008 merged commit e5f16ee into StellarCheckMate:main May 28, 2026
3 of 4 checks passed
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