From 76fd977b1bfeca6820b1349e4bbe26412f3de715 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Wed, 5 Mar 2025 22:55:57 -0600 Subject: [PATCH] Fix flaky gossip ping test (#5162) --- gossip/src/cluster_info.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gossip/src/cluster_info.rs b/gossip/src/cluster_info.rs index 113525175db420..d7813c4c773967 100644 --- a/gossip/src/cluster_info.rs +++ b/gossip/src/cluster_info.rs @@ -3224,6 +3224,7 @@ mod tests { ); let remote_nodes: Vec<(Keypair, SocketAddr)> = repeat_with(|| new_rand_remote_node(&mut rng)) + .filter(|(_, socket)| socket.port() != 0) .take(128) .collect(); let pings: Vec<_> = remote_nodes