From ebad2443f9cfbb8709c5abb5c28f6f4c478d7b02 Mon Sep 17 00:00:00 2001 From: Joshua Kim <20001595+joshua-kim@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:20:58 -0400 Subject: [PATCH] fix ut Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com> --- network/p2p/gossip/gossip_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/p2p/gossip/gossip_test.go b/network/p2p/gossip/gossip_test.go index be577dc6f18..b6a29526fb3 100644 --- a/network/p2p/gossip/gossip_test.go +++ b/network/p2p/gossip/gossip_test.go @@ -209,7 +209,7 @@ func TestValidatorGossiper(t *testing.T) { nodeID := ids.GenerateTestNodeID() - validators := testValidatorSet{ + validators := &testValidatorSet{ validators: set.Of(nodeID), } @@ -232,7 +232,7 @@ func TestValidatorGossiper(t *testing.T) { // we are not a validator, so we should not request gossip validators.validators = set.Set[ids.NodeID]{} require.NoError(gossiper.Gossip(context.Background())) - require.Equal(2, calls) + require.Equal(1, calls) } func TestPushGossiperNew(t *testing.T) {