Skip to content

Commit

Permalink
Fix gossip unit test (#3422)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
  • Loading branch information
joshua-kim authored Sep 26, 2024
1 parent 6e68a14 commit f11da2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/p2p/gossip/gossip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestValidatorGossiper(t *testing.T) {

nodeID := ids.GenerateTestNodeID()

validators := testValidatorSet{
validators := &testValidatorSet{
validators: set.Of(nodeID),
}

Expand All @@ -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) {
Expand Down

0 comments on commit f11da2f

Please sign in to comment.