summaryrefslogtreecommitdiff
path: root/internal/funcs/random_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/funcs/random_test.go')
-rw-r--r--internal/funcs/random_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/funcs/random_test.go b/internal/funcs/random_test.go
index c26c8ea7..d020079e 100644
--- a/internal/funcs/random_test.go
+++ b/internal/funcs/random_test.go
@@ -13,14 +13,14 @@ import (
func TestCreateRandomFuncs(t *testing.T) {
t.Parallel()
- for i := 0; i < 10; i++ {
+ for i := range 10 {
// Run this a bunch to catch race conditions
t.Run(strconv.Itoa(i), func(t *testing.T) {
t.Parallel()
ctx := context.Background()
fmap := CreateRandomFuncs(ctx)
- actual := fmap["random"].(func() interface{})
+ actual := fmap["random"].(func() any)
assert.Equal(t, ctx, actual().(*RandomFuncs).ctx)
})
@@ -168,7 +168,7 @@ func TestItem(t *testing.T) {
in := []string{"foo", "bar"}
got := ""
- for j := 0; j < 10; j++ {
+ for range 10 {
i, err = f.Item(in)
require.NoError(t, err)
got += i.(string)