Skip to content

Commit

Permalink
fix: path in lnd_client
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Mar 8, 2024
1 parent 25cd348 commit d2d9062
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integrationtests/src/lnd_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ impl LndClient {

pub async fn new_local_itest() -> anyhow::Result<Self> {
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
}

Expand Down

0 comments on commit d2d9062

Please sign in to comment.