diff --git a/pkg/resource/google/google_bigquery_table_test.go b/pkg/resource/google/google_bigquery_table_test.go index 733dd27f..44c327f6 100644 --- a/pkg/resource/google/google_bigquery_table_test.go +++ b/pkg/resource/google/google_bigquery_table_test.go @@ -22,7 +22,7 @@ func TestAcc_Google_BigqueryTable(t *testing.T) { // Logic below retries driftctl scan using a back-off strategy of retrying 'n' times // and doubling the amount of time waited after each one. ShouldRetry: func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool { - if result.IsSync() || retryDuration > 10*time.Minute { + if result.IsSync() || retryDuration > 15*time.Minute { return false } time.Sleep((2 * time.Duration(retryCount)) * time.Minute) diff --git a/pkg/resource/google/google_compute_global_address_test.go b/pkg/resource/google/google_compute_global_address_test.go index e7da3846..c7c39f43 100644 --- a/pkg/resource/google/google_compute_global_address_test.go +++ b/pkg/resource/google/google_compute_global_address_test.go @@ -22,7 +22,7 @@ func TestAcc_Google_ComputeGlobalAddress(t *testing.T) { // Logic below retries driftctl scan using a back-off strategy of retrying 'n' times // and doubling the amount of time waited after each one. ShouldRetry: func(result *test.ScanResult, retryDuration time.Duration, retryCount uint8) bool { - if result.IsSync() || retryDuration > 10*time.Minute { + if result.IsSync() || retryDuration > 15*time.Minute { return false } time.Sleep((2 * time.Duration(retryCount)) * time.Minute) diff --git a/test/acceptance/testing.go b/test/acceptance/testing.go index 2294afa0..a2f66113 100644 --- a/test/acceptance/testing.go +++ b/test/acceptance/testing.go @@ -438,7 +438,10 @@ func Run(t *testing.T, c AccTestCase) { if check.ShouldRetry == nil || !check.ShouldRetry(result, time.Since(timeBeforeRetry), retryCount) { break } - logrus.WithField("count", fmt.Sprintf("%d", retryCount)).Debug("Retrying scan ...") + logrus. + WithField("count", fmt.Sprintf("%d", retryCount)). + WithField("retry_duration", time.Since(timeBeforeRetry).Round(time.Second)). + Debug("Retrying scan ...") _, _, _ = runDriftCtlCmd(driftctlCmd) result = c.getResult(t) retryCount++