Skip to content

Commit f11da2f

Browse files
authored
Fix gossip unit test (#3422)
Signed-off-by: Joshua Kim <20001595+joshua-kim@users.noreply.github.com>
1 parent 6e68a14 commit f11da2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

network/p2p/gossip/gossip_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func TestValidatorGossiper(t *testing.T) {
209209

210210
nodeID := ids.GenerateTestNodeID()
211211

212-
validators := testValidatorSet{
212+
validators := &testValidatorSet{
213213
validators: set.Of(nodeID),
214214
}
215215

@@ -232,7 +232,7 @@ func TestValidatorGossiper(t *testing.T) {
232232
// we are not a validator, so we should not request gossip
233233
validators.validators = set.Set[ids.NodeID]{}
234234
require.NoError(gossiper.Gossip(context.Background()))
235-
require.Equal(2, calls)
235+
require.Equal(1, calls)
236236
}
237237

238238
func TestPushGossiperNew(t *testing.T) {

0 commit comments

Comments
 (0)