fix: update a few tests

Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-07-22 13:30:48 +02:00
parent 3bb0a65e04
commit e2297fd53a
4 changed files with 18 additions and 5 deletions

View File

@ -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);

View File

@ -817,7 +817,10 @@ mod tests {
}
async fn preloaded_testing_ipfs() -> Ipfs<ipfs::TestTypes> {
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()

View File

@ -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()

View File

@ -199,7 +199,10 @@ mod tests {
}
async fn testing_ipfs() -> ipfs::Ipfs<ipfs::TestTypes> {
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()