summaryrefslogtreecommitdiff
path: root/internal/funcs/aws_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/funcs/aws_test.go')
-rw-r--r--internal/funcs/aws_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/funcs/aws_test.go b/internal/funcs/aws_test.go
index 2a1efc5d..396d7826 100644
--- a/internal/funcs/aws_test.go
+++ b/internal/funcs/aws_test.go
@@ -12,14 +12,14 @@ import (
func TestCreateAWSFuncs(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 := CreateAWSFuncs(ctx)
- actual := fmap["aws"].(func() interface{})
+ actual := fmap["aws"].(func() any)
assert.Equal(t, ctx, actual().(*Funcs).ctx)
})
@@ -38,7 +38,7 @@ func TestAWSFuncs(t *testing.T) {
assert.Equal(t, "unknown", must(af.EC2Region()))
}
-func must(r interface{}, err error) interface{} {
+func must(r any, err error) any {
if err != nil {
panic(err)
}