fix: extend PGSQL fail wait cycle
All checks were successful
CI Workflow / Check GoReleaser config (pull_request) Successful in 43s
Notify on new PR / Notify via Google Chat (pull_request) Successful in 1m10s
CI Workflow / Prepare GO cache (pull_request) Successful in 5m4s
CI Workflow / CI run tests (pull_request) Successful in 5m40s
TF Acceptance Tests Workflow / Acceptance Tests (pull_request) Successful in 13m22s
CI Workflow / CI run build and linting (pull_request) Successful in 7m51s
CI Workflow / Code coverage report (pull_request) Successful in 45s
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 15m5s

This commit is contained in:
Marcel S. Henselin 2026-05-07 09:55:03 +02:00
parent 4e217e20a4
commit 29cf260d56

View file

@ -61,7 +61,7 @@ func CreateInstanceWaitHandler(
maxWait := time.Minute * 90
startTime := time.Now()
extendedTimeout := 0
maxFailedCount := 3
maxFailedCount := 10
failedCount := 0
handler := wait.New(
@ -129,7 +129,7 @@ func CreateInstanceWaitHandler(
},
)
var waitCounter int64 = 1
maxWaitInt := big.NewInt(7)
maxWaitInt := big.NewInt(10)
n, randErr := rand.Int(rand.Reader, maxWaitInt)
if randErr == nil {
waitCounter = n.Int64() + 1