Skip to content

Commit d26dc88

Browse files
Jordan-Williams2Jordan-Williams2
authored andcommitted
feat: scc workload protection DA
1 parent 09e9a53 commit d26dc88

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/pr_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1617
const resourceGroup = "geretain-test-resources"
@@ -43,7 +44,7 @@ func TestMain(m *testing.M) {
4344
func 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) {
7677
func 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,

0 commit comments

Comments
 (0)