Commit 0804a5c8 authored by Filip Grzadkowski's avatar Filip Grzadkowski

Fix race in integration test

parent 012ba0e3
......@@ -308,10 +308,12 @@ func podRunning(c *client.Client, podNamespace string, podID string) wait.Condit
return false, nil
}
if err != nil {
return false, err
// This could be a connection error so we want to retry, but log the error.
glog.Errorf("Error when reading pod %q: %v", podID, err)
return false, nil
}
if pod.Status.Phase != api.PodRunning {
return false, errors.New(fmt.Sprintf("Pod status is %q", pod.Status.Phase))
return false, nil
}
return true, nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment