Skip to content

Commit 2246f91

Browse files
committed
test: improve flaky
Signed-off-by: Rueian <[email protected]>
1 parent a31e941 commit 2246f91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/cmds/slot_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ func TestSlot(t *testing.T) {
1818
}
1919
})
2020
t.Run("not use tag", func(t *testing.T) {
21-
for i := 0; i < 100; i++ {
22-
key1 := strconv.Itoa(rand.Int())
21+
for i := 0; i < 1000; i++ {
22+
key1 := strconv.Itoa(i)
2323
key2 := fmt.Sprintf("%s{}", key1)
2424
if slot(key1) == slot(key2) {
2525
t.Fatalf("%v and %v should not be in the same slot", key1, key2)

0 commit comments

Comments
 (0)