fix: try to fix some tests
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 5s
CI Workflow / CI (pull_request) Failing after 13m44s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Has been cancelled

This commit is contained in:
Marcel S. Henselin 2026-02-13 13:52:28 +01:00
parent 7d5da4a95e
commit 71f1d248da
2 changed files with 46 additions and 40 deletions

View file

@ -152,7 +152,7 @@ func CreateInstanceWaitHandler(
}
return true, s, nil
case strings.ToLower(InstanceStateUnknown), strings.ToLower(InstanceStateFailed):
return true, s, fmt.Errorf("create failed for instance with id %s", instanceId)
return true, nil, fmt.Errorf("create failed for instance with id %s", instanceId)
case strings.ToLower(InstanceStatePending), strings.ToLower(InstanceStateProcessing):
tflog.Info(
ctx, "request is being handled", map[string]interface{}{
@ -168,7 +168,7 @@ func CreateInstanceWaitHandler(
"status": s.Status,
},
)
return false, s, nil
return true, nil, errors.New("unknown status received")
}
},
)