Skip to content

Commit

Permalink
fix: fix slice init length (#4956)
Browse files Browse the repository at this point in the history
Signed-off-by: shandongzhejiang <shandongzhejiang@icloud.com>
  • Loading branch information
shandongzhejiang authored Aug 23, 2024
1 parent 93c6952 commit 7b0fb38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/gossip/msgstore/msgs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestSize(t *testing.T) {
}

func TestNewMessagesInvalidates(t *testing.T) {
invalidated := make([]int, 9)
invalidated := make([]int, 0, 9)
msgStore := NewMessageStore(compareInts, func(m interface{}) {
invalidated = append(invalidated, m.(int))
})
Expand Down

0 comments on commit 7b0fb38

Please sign in to comment.