diff --git a/integrationtests/src/lnd_client.rs b/integrationtests/src/lnd_client.rs index 27e6274f..eff82712 100644 --- a/integrationtests/src/lnd_client.rs +++ b/integrationtests/src/lnd_client.rs @@ -32,8 +32,12 @@ impl LndClient { pub async fn new_local_itest() -> anyhow::Result { let url = Url::parse(LND_ADDRESS)?; - let cert_file = "../data/lnd1/tls.cert".into(); - let macaroon_file = "../data/lnd1/data/chain/bitcoin/regtest/admin.macaroon".into(); + let project_dir = std::env::var("CARGO_MANIFEST_DIR")?; + let cert_file: PathBuf = (project_dir.clone() + "../data/lnd1/tls.cert").into(); + println!("cert_file: {:?}", cert_file.exists()); + let macaroon_file: PathBuf = + (project_dir + "../data/lnd1/data/chain/bitcoin/regtest/admin.macaroon").into(); + println!("mac_file: {:?}", macaroon_file.exists()); Self::new(url, &cert_file, &macaroon_file).await }