Run blockchain tests on esplora

They were only being run on electrum before.
This commit is contained in:
LLFourn committed 2021-05-19 15:47:44 +10:00
1 parent 465ef6e674
commit fcae5adabd
5 files changed
+30 -8

No files matched your search

+8
View File
@@ -414,3 +414,11 @@ impl_error!(reqwest::Error, Reqwest, EsploraError);
impl_error!(std::num::ParseIntError, Parsing, EsploraError);
impl_error!(consensus::encode::Error, BitcoinEncoding, EsploraError);
impl_error!(bitcoin::hashes::hex::Error, Hex, EsploraError);
#[cfg(all(feature = "test-esplora", test))]
testutils::bdk_blockchain_tests! {
bdk => crate,
fn test_instance() -> EsploraBlockchain {
EsploraBlockchain::new(std::env::var("BDK_ESPLORA_URL").unwrap_or("127.0.0.1:3002".into()).as_str(), None)
}
}