Skip to content

Commit

Permalink
add logs in test to debug CI failure (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
keepsimple1 committed Jun 16, 2024
1 parent 5e0f1d3 commit fd00210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/mdns_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ fn test_cache_flush_record() {
let result = server.register(my_service.clone());
assert!(result.is_ok());

println!("Re-registered with updated IPv4 addr");
println!("Re-registered with updated IPv4 addr: {}", &service_ip_addr);

// Wait for the new registration sent out and cache flushed.
sleep(Duration::from_secs(2));
Expand All @@ -1218,6 +1218,7 @@ fn test_cache_flush_record() {
ServiceEvent::ServiceResolved(info) => {
// Verify the address flushed and updated.
let new_addrs = info.get_addresses();
println!("new address resolved: {:?}", new_addrs);
if new_addrs.len() == 1 {
let first_addr = new_addrs.iter().next().unwrap();
assert_eq!(first_addr, &service_ip_addr);
Expand Down

0 comments on commit fd00210

Please sign in to comment.