Skip to content

Commit 516609f

Browse files
authored
Merge pull request #1560 from snyk/chore/google_compute_subnetwork_acc
Add retry backoff to google_compute_subnetwork
2 parents 84f8720 + 957b27a commit 516609f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/resource/google/google_compute_subnetwork_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package google_test
22

33
import (
44
"testing"
5+
"time"
56

67
"github.com/snyk/driftctl/test"
78
"github.com/snyk/driftctl/test/acceptance"
@@ -18,6 +19,8 @@ func TestAcc_Google_ComputeSubnetwork(t *testing.T) {
1819
},
1920
Checks: []acceptance.AccCheck{
2021
{
22+
// New resources are not visible immediately through GCP API after an apply operation.
23+
ShouldRetry: acceptance.LinearBackoff(15 * time.Minute),
2124
Check: func(result *test.ScanResult, stdout string, err error) {
2225
if err != nil {
2326
t.Fatal(err)

0 commit comments

Comments
 (0)