Skip to content

Commit

Permalink
Use sleepForSecondsInTest in provider_test.go.erb (#4177)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored Nov 3, 2020
1 parent 02b90d4 commit 51390b9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions third_party/terraform/utils/provider_test.go.erb
Original file line number Diff line number Diff line change
Expand Up @@ -535,12 +535,9 @@ func TestAccProviderUserProjectOverride(t *testing.T) {
Steps: []resource.TestStep{
{
Config: testAccProviderUserProjectOverride(pid, pname, org, billing, sa),
Check: func(s *terraform.State) error {
// The token creator IAM API call returns success long before the policy is
// actually usable. Wait a solid 2 minutes to ensure we can use it.
time.Sleep(2 * time.Minute)
return nil
},
// The token creator IAM API call returns success long before the policy is
// actually usable. Wait a solid 2 minutes to ensure we can use it.
Check: sleepInSecondsForTest(2 * 60),
},
{
Config: testAccProviderUserProjectOverride_step2(pid, pname, org, billing, sa, false, topicName),
Expand Down

0 comments on commit 51390b9

Please sign in to comment.