Skip to content

Commit 2b977f2

Browse files
committed
wait enough
1 parent 67629cb commit 2b977f2

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
@@ -641,8 +641,9 @@ mod test_dns_pkarr {
641641

642642
let (relay_map, _relay_url, _relay_guard) = run_relay_server().await?;
643643
let ep1 = ep_with_discovery(relay_map.clone(), nameserver, &origin, &pkarr_url).await?;
644+
// wait until our shared state received the update from pkarr publishing
645+
state.on_update().await;
644646
let ep2 = ep_with_discovery(relay_map, nameserver, &origin, &pkarr_url).await?;
645-
646647
// wait until our shared state received the update from pkarr publishing
647648
state.on_update().await;
648649

0 commit comments

Comments
 (0)