Skip to content

Commit dca03ce

Browse files
authored
test(dash-spv): fix create_test_wallet import in tests_transaction (#751)
`#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`.
1 parent 91056b7 commit dca03ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dash-spv/tests/dashd_sync/tests_transaction.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use tokio::sync::RwLock;
77
use super::helpers::{
88
wait_for_mempool_tx, wait_for_sync, wait_for_wallet_synced, EMPTY_MNEMONIC, SECONDARY_MNEMONIC,
99
};
10-
use super::setup::{create_and_start_client, create_test_wallet, TestContext};
11-
use dash_spv::test_utils::TestChain;
10+
use super::setup::{create_and_start_client, TestContext};
11+
use dash_spv::test_utils::{create_test_wallet, TestChain};
1212
use dashcore::address::NetworkUnchecked;
1313
use key_wallet::account::ManagedAccountTrait;
1414
use key_wallet::wallet::managed_wallet_info::transaction_builder::{

0 commit comments

Comments
 (0)