Skip to content

test: add missing unit tests for operator rotation, threshold window,…#786

Merged
Mosas2000 merged 1 commit into
StellaBridge:mainfrom
hardcordev:test/add-missing-tests
Jun 29, 2026
Merged

test: add missing unit tests for operator rotation, threshold window,…#786
Mosas2000 merged 1 commit into
StellaBridge:mainfrom
hardcordev:test/add-missing-tests

Conversation

@hardcordev

Copy link
Copy Markdown
Contributor

Closes #773
Closes #772
Closes #769
Closes #774

Summary

  • Closes Add Tests for Operator Rotation Contract Module #773 — adds contracts/soroban/tests/operator_rotation.test.rs (15 tests) covering add, remove,
    reactivation, handover, last-operator protection, audit fields, and event emission
  • Closes Add Tests for Threshold Window Contract Module #772 — adds contracts/soroban/tests/threshold_window.test.rs (20 tests) covering
    create/update/remove, threshold evaluation (breach, no-breach, zero reference), unit conversions
    (seconds/minutes/hours), validation panics, and MAX_WINDOWS limit
  • Closes Add Tests for Export Job #769 — adds backend/tests/jobs/export.job.test.ts (11 tests) covering singleton pattern, queue
    configuration, addExportJob payload/jobId, and close()
  • Closes Add Unit Tests for Email Service #774 — adds backend/tests/services/email.service.test.ts (18 tests) covering send, retry-on-failure,
    max-attempts exhaustion, unsubscribed/bounced skip, delivery stats, and SMTP connection verification

Test plan

  • cargo test --test operator_rotation_test — 15/15 passed
  • cargo test --test threshold_window_test — 20/20 passed
  • npx vitest run tests/jobs/export.job.test.ts — 11/11 passed
  • npx vitest run tests/services/email.service.test.ts — 18/18 passed

… export job, and email service

Adds external integration tests for two Soroban contract modules and
unit tests for two backend services that had no test coverage.

Closes StellaBridge#773
Closes StellaBridge#772
Closes StellaBridge#769
Closes StellaBridge#774
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

@Mosas2000 Mosas2000 merged commit 8ed5e87 into StellaBridge:main Jun 29, 2026
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