Skip to content

Commit

Permalink
try if macos just needs more time
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed May 22, 2024
1 parent 5ccdf0b commit a6f014a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iroh/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,12 @@ mod tests {
let iroh = Node::persistent(iroh_root).await.unwrap().spawn().await;
dbg!(&iroh);
assert!(iroh.is_err());

// somehow the blob store is not shutdown correctly (yet?) on macos.
// so we give it some time until we find a proper fix.
#[cfg(target_os = "macos")]
tokio::time::sleep(Duration::from_secs(1)).await;

tokio::fs::remove_file(IrohPaths::DefaultAuthor.with_root(iroh_root))
.await
.unwrap();
Expand Down

0 comments on commit a6f014a

Please sign in to comment.