refactor(acceptance): add retry duration to debug logs

main
sundowndev 2022-02-11 11:10:56 +04:00
parent ac8ab1362e
commit 4a15b763d1
1 changed files with 4 additions and 1 deletions

View File

@ -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++