Skip to content

Commit

Permalink
tests: use bitcoind::exe_path() instead of custom logic
Browse files Browse the repository at this point in the history
this allows to also check for bitcoind in path
  • Loading branch information
RCasatta committed Sep 5, 2022
1 parent 75c91c2 commit 1a80de1
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,13 +429,7 @@ mod test {

fn init() -> (String, String) {
let _ = env_logger::try_init();
let bitcoind_exe_path = if let Ok(env_bitcoind_exe) = env::var("BITCOIND_EXE") {
env_bitcoind_exe
} else if let Ok(downloaded_exe_path) = bitcoind::downloaded_exe_path() {
downloaded_exe_path
} else {
panic!("when no version feature is specified, you must specify BITCOIND_EXE env var")
};
let bitcoind_exe_path = bitcoind::exe_path().unwrap();
let electrs_exe_path = if let Ok(env_electrs_exe) = env::var("ELECTRS_EXE") {
env_electrs_exe
} else if let Some(downloaded_exe_path) = crate::downloaded_exe_path() {
Expand Down

0 comments on commit 1a80de1

Please sign in to comment.