fix: update a few tests
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
parent
3bb0a65e04
commit
e2297fd53a
@ -119,7 +119,8 @@ mod tests {
|
|||||||
use super::routes;
|
use super::routes;
|
||||||
use ipfs::{IpfsOptions, UninitializedIpfs};
|
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();
|
let (ipfs, fut) = UninitializedIpfs::new(options).await.start().await.unwrap();
|
||||||
drop(fut);
|
drop(fut);
|
||||||
|
@ -817,7 +817,10 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn preloaded_testing_ipfs() -> Ipfs<ipfs::TestTypes> {
|
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)
|
let (ipfs, _) = ipfs::UninitializedIpfs::new(options)
|
||||||
.await
|
.await
|
||||||
.start()
|
.start()
|
||||||
|
@ -334,7 +334,10 @@ mod tests {
|
|||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn very_long_file_and_symlink_names() {
|
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)
|
let (ipfs, _) = ipfs::UninitializedIpfs::new(options)
|
||||||
.await
|
.await
|
||||||
.start()
|
.start()
|
||||||
@ -395,7 +398,10 @@ mod tests {
|
|||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn get_multiblock_file() {
|
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)
|
let (ipfs, _) = ipfs::UninitializedIpfs::new(options)
|
||||||
.await
|
.await
|
||||||
.start()
|
.start()
|
||||||
|
@ -199,7 +199,10 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn testing_ipfs() -> ipfs::Ipfs<ipfs::TestTypes> {
|
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)
|
let (ipfs, fut) = ipfs::UninitializedIpfs::new(options)
|
||||||
.await
|
.await
|
||||||
.start()
|
.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user