Skip to content

Commit 093ef9d

Browse files
Remaining clean up
1 parent d12d1a7 commit 093ef9d

File tree

6 files changed

+4
-1221
lines changed

6 files changed

+4
-1221
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ test-blockchains = ["bitcoincore-rpc", "electrum-client"]
9191
test-electrum = ["electrum", "electrsd/electrs_0_8_10", "electrsd/bitcoind_22_0", "test-blockchains"]
9292
test-rpc = ["rpc", "electrsd/electrs_0_8_10", "electrsd/bitcoind_22_0", "test-blockchains"]
9393
test-rpc-legacy = ["rpc", "electrsd/electrs_0_8_10", "electrsd/bitcoind_0_20_0", "test-blockchains"]
94-
test-esplora = ["electrsd/legacy", "electrsd/esplora_a33e97e1", "electrsd/bitcoind_22_0", "test-blockchains"]
94+
test-esplora = ["use-esplora-ureq", "electrsd/legacy", "electrsd/esplora_a33e97e1", "electrsd/bitcoind_22_0", "test-blockchains"]
9595
test-md-docs = ["electrum"]
9696

9797
[dev-dependencies]

src/blockchain/electrum.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,6 @@ mod test {
331331
use crate::testutils::blockchain_tests::{BlockchainType, TestClient};
332332
use crate::wallet::{AddressIndex, Wallet};
333333

334-
crate::bdk_blockchain_tests! {
335-
fn test_instance(test_client: &TestClient) -> ElectrumBlockchain {
336-
ElectrumBlockchain::from(Client::new(&test_client.electrsd.electrum_url).unwrap())
337-
}
338-
}
339-
340334
make_blockchain_tests![
341335
blockchain BlockchainType::ElectrumBlockchain,
342336
tests (

src/blockchain/esplora/mod.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,13 @@ impl_error!(std::num::ParseIntError, Parsing, EsploraError);
149149
impl_error!(consensus::encode::Error, BitcoinEncoding, EsploraError);
150150
impl_error!(bitcoin::hashes::hex::Error, Hex, EsploraError);
151151

152-
#[cfg(test)]
153-
#[cfg(feature = "test-esplora")]
154-
crate::bdk_blockchain_tests! {
155-
fn test_instance(test_client: &TestClient) -> EsploraBlockchain {
156-
EsploraBlockchain::new(&format!("http://{}",test_client.electrsd.esplora_url.as_ref().unwrap()), 20)
157-
}
158-
}
159-
160152
const DEFAULT_CONCURRENT_REQUESTS: u8 = 4;
161153

162154
#[cfg(test)]
163155
pub mod test {
164156
use super::*;
165157
use crate::make_blockchain_tests;
166158
use crate::testutils::blockchain_tests::BlockchainType;
167-
use crate::testutils::blockchain_tests::TestClient;
168159

169160
#[cfg(feature = "test-esplora")]
170161
make_blockchain_tests![

src/blockchain/rpc.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -575,19 +575,6 @@ pub mod test {
575575
use bitcoin::Network;
576576
use bitcoincore_rpc::RpcApi;
577577

578-
crate::bdk_blockchain_tests! {
579-
fn test_instance(test_client: &TestClient) -> RpcBlockchain {
580-
let config = RpcConfig {
581-
url: test_client.bitcoind.rpc_url(),
582-
auth: Auth::Cookie { file: test_client.bitcoind.params.cookie_file.clone() },
583-
network: Network::Regtest,
584-
wallet_name: format!("client-wallet-test-{}", std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_nanos() ),
585-
skip_blocks: None,
586-
};
587-
RpcBlockchain::from_config(&config).unwrap()
588-
}
589-
}
590-
591578
make_blockchain_tests![
592579
blockchain BlockchainType::RpcBlockchain,
593580
tests (

0 commit comments

Comments
 (0)