test(dash-spv): fix create_test_wallet import in tests_transaction#751
Conversation
`#740` moved `create_test_wallet` from `dashd_sync/setup.rs` to `dash_spv::test_utils` and changed `setup.rs` to a private re-import. `#748` was authored against an earlier base where `setup.rs` still defined a local `pub(super) fn create_test_wallet`, so the new tests in `tests_transaction.rs` imported it via `super::setup`. Each PR was green against its own base, but their merged state fails to compile because the `super::setup` import is now private. Switch the import to `dash_spv::test_utils`, matching `tests_basic.rs`, `tests_mempool.rs`, `tests_multi_wallet.rs`, and `tests_restart.rs`.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughImport declarations in the transaction test file are reorganized to source ChangesTest Import Reorganization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v0.42-dev #751 +/- ##
=============================================
+ Coverage 67.11% 72.20% +5.08%
=============================================
Files 235 320 +85
Lines 53944 69631 +15687
=============================================
+ Hits 36204 50274 +14070
- Misses 17740 19357 +1617
|
CI on v0.42-dev is currently failing because #740 moved
create_test_walletfromdashd_sync/setup.rstodash_spv::test_utilsand changedsetup.rsto a private re-import. #748 was authored against an earlier base wheresetup.rsstill defined a localpub(super) fn create_test_wallet, so the new tests intests_transaction.rsimported it viasuper::setup.Switch the import to
dash_spv::test_utils, matchingtests_basic.rs,tests_mempool.rs,tests_multi_wallet.rs, andtests_restart.rs.Summary by CodeRabbit
Release Notes
No user-facing changes
This release includes internal test infrastructure updates to reorganize module imports, with no impact on end-user functionality or features.