Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Frando committed May 2, 2024
1 parent 2fd2c8f commit 469bf0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iroh/tests/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,13 +626,17 @@ async fn sync_restart_node() -> Result<()> {
node1.shutdown().await?;
info!(me = id1.fmt_short(), "node1 down");

info!(me = id1.fmt_short(), "sleep 1s");
tokio::time::sleep(Duration::from_secs(1)).await;

info!(me = id2.fmt_short(), "node2 set b");
let hash_b = doc2.set_bytes(author2, "n2/b", "b").await?;

info!(me = id1.fmt_short(), "node1 respawn");
let node1 = Node::persistent(&node1_dir)
.await?
.secret_key(secret_key_1.clone())
.insecure_skip_relay_cert_verify(true)
.relay_mode(RelayMode::Custom(relay_map.clone()))
.dns_resolver(discovery_server.dns_resolver())
.node_discovery(discovery_server.discovery(secret_key_1.clone()).into())
Expand Down

0 comments on commit 469bf0d

Please sign in to comment.