Skip to content

Commit

Permalink
unit test: fix a timing issue (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
keepsimple1 authored Dec 22, 2024
1 parent b1795c9 commit b51f67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service_daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3821,7 +3821,7 @@ mod tests {

let mdns_client = ServiceDaemon::new().expect("Failed to create mdns client");
let browse_chan = mdns_client.browse(service_type).unwrap();
let timeout = Duration::from_secs(1);
let timeout = Duration::from_millis(1500); // Give at least 1 second for the service probing.
let mut resolved = false;

// resolve the service first.
Expand Down

0 comments on commit b51f67d

Please sign in to comment.