diff --git a/http/src/v0.rs b/http/src/v0.rs index db962368..791caa21 100644 --- a/http/src/v0.rs +++ b/http/src/v0.rs @@ -119,7 +119,8 @@ mod tests { use super::routes; use ipfs::{IpfsOptions, UninitializedIpfs}; - let options = IpfsOptions::inmemory_with_generated_keys(false); + let options = + IpfsOptions::inmemory_with_generated_keys(false, Some("/ipfs/lan/kad/1.0.0".into())); let (ipfs, fut) = UninitializedIpfs::new(options).await.start().await.unwrap(); drop(fut); diff --git a/http/src/v0/refs.rs b/http/src/v0/refs.rs index 46dd07f8..ceacaeb9 100644 --- a/http/src/v0/refs.rs +++ b/http/src/v0/refs.rs @@ -817,7 +817,10 @@ mod tests { } async fn preloaded_testing_ipfs() -> Ipfs { - let options = ipfs::IpfsOptions::inmemory_with_generated_keys(false); + let options = ipfs::IpfsOptions::inmemory_with_generated_keys( + false, + Some("/ipfs/lan/kad/1.0.0".into()), + ); let (ipfs, _) = ipfs::UninitializedIpfs::new(options) .await .start() diff --git a/http/src/v0/root_files.rs b/http/src/v0/root_files.rs index e0f6ed74..d5e0865a 100644 --- a/http/src/v0/root_files.rs +++ b/http/src/v0/root_files.rs @@ -334,7 +334,10 @@ mod tests { #[tokio::test] async fn very_long_file_and_symlink_names() { - let options = ipfs::IpfsOptions::inmemory_with_generated_keys(false); + let options = ipfs::IpfsOptions::inmemory_with_generated_keys( + false, + Some("/ipfs/lan/kad/1.0.0".into()), + ); let (ipfs, _) = ipfs::UninitializedIpfs::new(options) .await .start() @@ -395,7 +398,10 @@ mod tests { #[tokio::test] async fn get_multiblock_file() { - let options = ipfs::IpfsOptions::inmemory_with_generated_keys(false); + let options = ipfs::IpfsOptions::inmemory_with_generated_keys( + false, + Some("/ipfs/lan/kad/1.0.0".into()), + ); let (ipfs, _) = ipfs::UninitializedIpfs::new(options) .await .start() diff --git a/http/src/v0/root_files/add.rs b/http/src/v0/root_files/add.rs index 2924a554..7e66f88a 100644 --- a/http/src/v0/root_files/add.rs +++ b/http/src/v0/root_files/add.rs @@ -199,7 +199,10 @@ mod tests { } async fn testing_ipfs() -> ipfs::Ipfs { - let options = ipfs::IpfsOptions::inmemory_with_generated_keys(false); + let options = ipfs::IpfsOptions::inmemory_with_generated_keys( + false, + Some("/ipfs/lan/kad/1.0.0".into()), + ); let (ipfs, fut) = ipfs::UninitializedIpfs::new(options) .await .start()