Skip to content

Commit

Permalink
removes unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
behzadnouri committed Aug 9, 2024
1 parent a34d955 commit 946191e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gossip/src/contact_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,8 +1042,8 @@ mod tests {
// Updated socket address is not a duplicate instance.
{
let mut other = node.clone();
other.set_gossip(new_rand_socket(&mut rng)).unwrap();
other.set_serve_repair(new_rand_socket(&mut rng)).unwrap();
while other.set_gossip(new_rand_socket(&mut rng)).is_err() {}
while other.set_serve_repair(new_rand_socket(&mut rng)).is_err() {}
assert!(!node.check_duplicate(&other));
assert!(!other.check_duplicate(&node));
other.remove_serve_repair();
Expand Down

0 comments on commit 946191e

Please sign in to comment.