Skip to content

Commit

Permalink
Use a different org name for each test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mkam committed Jan 16, 2025
1 parent c2858f9 commit 7a8297e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/provider/resource_tfe_team_project_access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (

func TestAccTFETeamProjectAccess(t *testing.T) {
tmAccess := &tfe.TeamProjectAccess{}
rInt := rand.New(rand.NewSource(time.Now().UnixNano())).Int()

for _, access := range []tfe.TeamProjectAccessType{tfe.TeamProjectAccessAdmin, tfe.TeamProjectAccessMaintain, tfe.TeamProjectAccessWrite, tfe.TeamProjectAccessRead} {
resource.Test(t, resource.TestCase{
Expand All @@ -26,7 +25,7 @@ func TestAccTFETeamProjectAccess(t *testing.T) {
CheckDestroy: testAccCheckTFETeamProjectAccessDestroy,
Steps: []resource.TestStep{
{
Config: testAccTFETeamProjectAccess(rInt, access),
Config: testAccTFETeamProjectAccess(rand.New(rand.NewSource(time.Now().UnixNano())).Int(), access),
Check: resource.ComposeTestCheckFunc(
testAccCheckTFETeamProjectAccessExists(
"tfe_team_project_access.foobar", tmAccess),
Expand Down

0 comments on commit 7a8297e

Please sign in to comment.