We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0ea9d commit 53c2334Copy full SHA for 53c2334
pkg/envtest/server.go
@@ -172,15 +172,16 @@ func (te *Environment) Start() (*rest.Config, error) {
172
173
func (te *Environment) startControlPlane() error {
174
numTries, maxRetries := 0, 5
175
+ var err error
176
for ; numTries < maxRetries; numTries++ {
177
// Start the control plane - retry if it fails
- err := te.ControlPlane.Start()
178
+ err = te.ControlPlane.Start()
179
if err == nil {
180
break
181
}
182
183
if numTries == maxRetries {
- return fmt.Errorf("failed to start the controlplane. retried %d times", numTries)
184
+ return fmt.Errorf("failed to start the controlplane. retried %d times: %s", numTries, err.Error())
185
186
return nil
187
0 commit comments