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 46701f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion iroh-net/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,6 @@ mod test_dns_pkarr {

// wait until our shared state received the update from pkarr publishing
dns_pkarr_server
.state
.on_node(&ep1.node_id(), timeout)
.await?;

Expand Down
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 46701f0

Please sign in to comment.