Skip to content

Commit e66a840

Browse files
committed
wait enough
1 parent b008f7e commit e66a840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iroh-net/src/discovery.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,9 @@ mod test_dns_pkarr {
643643
let (relay_map, _relay_url, _relay_guard) = run_relay_server().await?;
644644

645645
let ep1 = ep_with_discovery(relay_map.clone(), nameserver, &origin, &pkarr_url).await?;
646+
// wait until our shared state received the update from pkarr publishing
647+
state.on_update().await;
646648
let ep2 = ep_with_discovery(relay_map, nameserver, &origin, &pkarr_url).await?;
647-
648649
// wait until our shared state received the update from pkarr publishing
649650
state.on_node(&ep1.node_id(), timeout).await?;
650651

0 commit comments

Comments
 (0)