Skip to content

Commit

Permalink
stores: remove frand.Shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Feb 22, 2024
1 parent e8c5c92 commit aacaaa7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions stores/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4317,13 +4317,7 @@ func TestTypeCurrency(t *testing.T) {
}

// insert currencies in random order
values := []interface{}{
bCurrency(types.ZeroCurrency),
bCurrency(types.NewCurrency64(1)),
bCurrency(types.MaxCurrency),
}
frand.Shuffle(len(values), func(i, j int) { values[i], values[j] = values[j], values[i] })
if err := ss.db.Exec("INSERT INTO currencies (c) VALUES (?),(?),(?);", values...).Error; err != nil {
if err := ss.db.Exec("INSERT INTO currencies (c) VALUES (?),(?),(?);", bCurrency(types.MaxCurrency), bCurrency(types.NewCurrency64(1)), bCurrency(types.ZeroCurrency)).Error; err != nil {
t.Fatal(err)
}

Expand Down

0 comments on commit aacaaa7

Please sign in to comment.