Skip to content

Commit 2df3c1b

Browse files
committed
solve conflict resources with random
1 parent a2288e1 commit 2df3c1b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/provider/role_resource_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ package provider
22

33
import (
44
"fmt"
5+
"math/rand"
56
"testing"
67
"time"
78

89
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
910
)
1011

1112
func TestResources(t *testing.T) {
12-
testID := fmt.Sprintf("test-%d", time.Now().Unix())
13+
testID := fmt.Sprintf("test-%d-%d", time.Now().Unix(), rand.Intn(10000))
1314
resource.Test(t, resource.TestCase{
1415
ProtoV6ProviderFactories: testAccProtoV6ProviderFactories,
1516
Steps: []resource.TestStep{

0 commit comments

Comments
 (0)