Merge pull request 'fix: extend PGSQL fail wait cycle' (#113) from fix/longer_fail_wait_cycle into main
All checks were successful
Publish / Check GoReleaser config (push) Successful in 5s
Publish / Publish provider (push) Successful in 5m40s

Reviewed-on: #113
This commit is contained in:
Marcel_Henselin 2026-05-07 07:55:51 +00:00
commit 6b5b97ac9a
Signed by: tf-provider.git.onstackit.cloud
GPG key ID: 6D7E8A1ED8955A9C

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