Skip to content

Commit c461a17

Browse files
authored
fix: fix slice init length (#6237)
Signed-off-by: cuishuang <[email protected]>
1 parent cccfd73 commit c461a17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ring/tokens_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
func TestTokens_Serialization(t *testing.T) {
13-
tokens := make(Tokens, 512)
13+
tokens := make(Tokens, 0, 512)
1414
for i := 0; i < 512; i++ {
1515
tokens = append(tokens, uint32(rand.Int31()))
1616
}

0 commit comments

Comments
 (0)