Test refactor

- Fix esplora module level feature flag
- Move esplora blockchain tests to module, to cover for both variants
This commit is contained in:
rajarshimaitra
2021-08-31 14:28:10 +05:30
parent a41a0030dc
commit 8d1d92e71e
2 changed files with 12 additions and 34 deletions

View File

@@ -350,11 +350,3 @@ impl ConfigurableBlockchain for EsploraBlockchain {
Ok(blockchain)
}
}
#[cfg(test)]
#[cfg(feature = "test-esplora")]
crate::bdk_blockchain_tests! {
fn test_instance(test_client: &TestClient) -> EsploraBlockchain {
EsploraBlockchain::new(&format!("http://{}",test_client.electrsd.esplora_url.as_ref().unwrap()), None, 20)
}
}