Skip to content

Commit

Permalink
Enhance test message
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Dec 17, 2024
1 parent b03b194 commit bbbc53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ mod tests {
.chain(DEFAULT_INTF.ipv6.iter().map(|net| (net.addr.into(), expected_addrs.default_intf_v6)));

for (addr, expected) in expected_addrs {
eyre::ensure!(addrs.contains(&addr) == expected, "Address {addr} was{not} expected", not = if expected { "" } else { " not" });
eyre::ensure!(addrs.contains(&addr) == expected, "Address {addr} was{not} expected in {addrs:#?}", not = if expected { "" } else { " not" });
}

Ok(())
Expand Down

0 comments on commit bbbc53e

Please sign in to comment.