Skip to content

Commit

Permalink
test: improve flaky
Browse files Browse the repository at this point in the history
Signed-off-by: Rueian <[email protected]>
  • Loading branch information
rueian committed Dec 12, 2024
1 parent a31e941 commit 2246f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmds/slot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func TestSlot(t *testing.T) {
}
})
t.Run("not use tag", func(t *testing.T) {
for i := 0; i < 100; i++ {
key1 := strconv.Itoa(rand.Int())
for i := 0; i < 1000; i++ {
key1 := strconv.Itoa(i)
key2 := fmt.Sprintf("%s{}", key1)
if slot(key1) == slot(key2) {
t.Fatalf("%v and %v should not be in the same slot", key1, key2)
Expand Down

0 comments on commit 2246f91

Please sign in to comment.