提交 8b24eafb 编写于 作者: T tstromberg

Fix pod list retry, reset start timer

上级 ba8aeaae
......@@ -228,7 +228,9 @@ func PodWait(ctx context.Context, t *testing.T, profile string, ns string, selec
pods, err := client.CoreV1().Pods(ns).List(listOpts)
if err != nil {
t.Logf("WARNING: pod list for %q %q returned: %v", ns, selector, err)
return false, err
// Don't return the error upwards so that this is retried, in case the apiserver is rescheduled
podStart = time.Time{}
return false, nil
}
if len(pods.Items) == 0 {
podStart = time.Time{}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册