File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ import (
66 "os"
77 "testing"
88
9+ "math/rand/v2"
10+
911 "github.com/stretchr/testify/assert"
1012 "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/common"
1113 "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper"
1214 "github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testschematic"
13- "golang.org/x/exp/rand"
1415)
1516
1617const resourceGroup = "geretain-test-resources"
@@ -43,7 +44,7 @@ func TestMain(m *testing.M) {
4344func TestInstancesInSchematics (t * testing.T ) {
4445 t .Parallel ()
4546
46- var region = validRegions [rand .Intn (len (validRegions ))]
47+ var region = validRegions [rand .IntN (len (validRegions ))]
4748
4849 options := testschematic .TestSchematicOptionsDefault (& testschematic.TestSchematicOptions {
4950 Testing : t ,
@@ -76,7 +77,7 @@ func TestInstancesInSchematics(t *testing.T) {
7677func TestRunUpgradeInstances (t * testing.T ) {
7778 t .Parallel ()
7879
79- var region = validRegions [rand .Intn (len (validRegions ))]
80+ var region = validRegions [rand .IntN (len (validRegions ))]
8081
8182 options := testhelper .TestOptionsDefault (& testhelper.TestOptions {
8283 Testing : t ,
You can’t perform that action at this time.
0 commit comments