Skip to content

Commit 313e5b3

Browse files
Use sleepForSecondsInTest in provider_test.go.erb (#4177) (#2674)
Signed-off-by: Modular Magician <[email protected]>
1 parent 3cff6dd commit 313e5b3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.changelog/4177.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/provider_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -525,12 +525,9 @@ func TestAccProviderUserProjectOverride(t *testing.T) {
525525
Steps: []resource.TestStep{
526526
{
527527
Config: testAccProviderUserProjectOverride(pid, pname, org, billing, sa),
528-
Check: func(s *terraform.State) error {
529-
// The token creator IAM API call returns success long before the policy is
530-
// actually usable. Wait a solid 2 minutes to ensure we can use it.
531-
time.Sleep(2 * time.Minute)
532-
return nil
533-
},
528+
// The token creator IAM API call returns success long before the policy is
529+
// actually usable. Wait a solid 2 minutes to ensure we can use it.
530+
Check: sleepInSecondsForTest(2 * 60),
534531
},
535532
{
536533
Config: testAccProviderUserProjectOverride_step2(pid, pname, org, billing, sa, false, topicName),

0 commit comments

Comments
 (0)