Skip to content

Commit

Permalink
test: fix a flaky test (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
keepsimple1 authored Dec 11, 2024
1 parent 1ddae63 commit 489ef5a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/mdns_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1546,9 +1546,12 @@ fn test_name_conflict_resolution() {
service_names.insert(info.get_fullname().to_string());

// Find and verify name conflict resolution.

if info.get_fullname().contains("(2)") {
assert_eq!(info.get_hostname(), "conflict_host-2.local.");
}

// Stop the wait if both are resolved.
if service_names.len() == 2 {
break;
}
}
Expand Down

0 comments on commit 489ef5a

Please sign in to comment.