diff --git a/integration-tests/tests/common/mod.rs b/integration-tests/tests/common/mod.rs index 3ae39edaa258f1036e194e221f8e9610214a5fc0..90770ed3e9378b218785dda1832f3678143f88fd 100644 --- a/integration-tests/tests/common/mod.rs +++ b/integration-tests/tests/common/mod.rs @@ -41,8 +41,8 @@ impl Drop for Process { } pub async fn spawn_node() -> (Api, Client, Process) { - let duniter_binary_path = - std::env::var("DUNITER_BINARY_PATH").unwrap_or("../target/debug/duniter".to_owned()); + let duniter_binary_path = std::env::var("DUNITER_BINARY_PATH") + .unwrap_or_else(|_| "../target/debug/duniter".to_owned()); let p2p_port = portpicker::pick_unused_port().expect("No ports free"); let rpc_port = portpicker::pick_unused_port().expect("No ports free");