From 331fbe6b8927b8c0588d0f71b878ace17ae3a0ec Mon Sep 17 00:00:00 2001 From: sundowndev Date: Wed, 27 Oct 2021 15:55:09 +0200 Subject: [PATCH] chore(acc): add comment for retry policy --- pkg/resource/google/google_cloudfunctions_function_test.go | 2 +- pkg/resource/google/google_storage_bucket_test.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/resource/google/google_cloudfunctions_function_test.go b/pkg/resource/google/google_cloudfunctions_function_test.go index 10ca1f8b..e6553660 100644 --- a/pkg/resource/google/google_cloudfunctions_function_test.go +++ b/pkg/resource/google/google_cloudfunctions_function_test.go @@ -18,7 +18,7 @@ func TestAcc_Google_CloudFunctionsFunction(t *testing.T) { }, Checks: []acceptance.AccCheck{ { - // New cloud function resources are not visible immediatly on GCP api after an apply + // New resources are not visible immediately on GCP api after an apply // Logic below retry driftctl scan until we can retrieve the results (infra will be in sync) and for maximum 60 seconds ShouldRetry: func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool { return !result.IsSync() && retryDuration < time.Minute diff --git a/pkg/resource/google/google_storage_bucket_test.go b/pkg/resource/google/google_storage_bucket_test.go index 93d140a1..b10ea8d3 100644 --- a/pkg/resource/google/google_storage_bucket_test.go +++ b/pkg/resource/google/google_storage_bucket_test.go @@ -18,6 +18,8 @@ func TestAcc_Google_StorageBucket(t *testing.T) { }, Checks: []acceptance.AccCheck{ { + // New resources are not visible immediately on GCP api after an apply + // Logic below retry driftctl scan until we can retrieve the results (infra will be in sync) and for maximum 60 seconds ShouldRetry: func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool { return !result.IsSync() && retryDuration < time.Minute },