Skip to content

fix: consolidate MockDripsContract into tests/common/mod.rs - #299

Merged
N-thnI merged 3 commits into
Vero-protocol:mainfrom
IfyJustin91:fix/199-consolidate-mock-drips-contract
Aug 30, 2026
Merged

fix: consolidate MockDripsContract into tests/common/mod.rs#299
N-thnI merged 3 commits into
Vero-protocol:mainfrom
IfyJustin91:fix/199-consolidate-mock-drips-contract

Conversation

@IfyJustin91

Copy link
Copy Markdown
Contributor

Summary

Closes #199

MockDripsContract was independently defined in both tests/purge_reward_stream.rs and tests/test.rs with an identical start_stream stub. Any future change to the mocked Drips interface would require updating two separate definitions with no guarantee they stayed in sync.

Changes

  • Add tests/common/mod.rs — single canonical MockDripsContract definition
  • Update tests/purge_reward_stream.rs — remove local definition, import from common
  • Update tests/test.rs — remove local definition, import from common

Testing

Both test suites are structurally unchanged. Only the source of the mock moved; no test logic was modified.

Closes Vero-protocol#199

MockDripsContract was independently defined in both
tests/purge_reward_stream.rs and tests/test.rs with identical
start_stream stubs. Any future change to the mocked Drips interface
would have required updating two separate definitions with no guarantee
they stayed in sync.

- Add tests/common/mod.rs with the single canonical MockDripsContract
- Update tests/purge_reward_stream.rs to import from common
- Update tests/test.rs to import from common
@N-thnI

N-thnI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

please ensure all checks pass

IfyJustin91 and others added 2 commits August 30, 2026 12:50
The multi-line empty-body function signature in tests/common/mod.rs
was rejected by `cargo fmt --check` (CI Format check step).
rustfmt collapses empty-body functions with params that fit on one
line into a single-line form.

No logic change — stub body remains empty.
@N-thnI
N-thnI merged commit bf4d631 into Vero-protocol:main Aug 30, 2026
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

Development

Successfully merging this pull request may close these issues.

MockDripsContract is defined independently in two test files

2 participants