Skip to content

Commit

Permalink
test: fixed other_tests (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatagarwal-ibm authored Apr 9, 2024
1 parent 128aead commit 4f90e8b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/other_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package test

import (
"github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper/testhelper"
"math/rand"
"testing"

"github.com/stretchr/testify/assert"
Expand All @@ -9,7 +11,12 @@ import (
func TestRunBasicExample(t *testing.T) {
t.Parallel()

options := setupOptions(t, "appid-bas", basicExampleDir)
options := testhelper.TestOptionsDefaultWithVars(&testhelper.TestOptions{
Testing: t,
TerraformDir: basicExampleDir,
Prefix: "appid-bas",
Region: validRegions[rand.Intn(len(validRegions))],
})

output, err := options.RunTestConsistency()
assert.Nil(t, err, "This should not have errored")
Expand Down

0 comments on commit 4f90e8b

Please sign in to comment.