Merge testutils crate into the main crate

This avoids having to keep the apis in sync between the macros and the
main project.
This commit is contained in:
LLFourn
2021-05-19 13:04:32 +10:00
parent fcae5adabd
commit d60c5003bf
11 changed files with 50 additions and 75 deletions

View File

@@ -169,9 +169,8 @@ impl ConfigurableBlockchain for ElectrumBlockchain {
}
}
#[cfg(all(feature = "test-electrum", test))]
testutils::bdk_blockchain_tests! {
bdk => crate,
#[cfg(feature = "test-blockchains")]
crate::bdk_blockchain_tests! {
fn test_instance() -> ElectrumBlockchain {
ElectrumBlockchain::from(Client::new(&testutils::get_electrum_url()).unwrap())
}