Skip to content

Commit

Permalink
Merge pull request #5794 from tstromberg/none-reliable
Browse files Browse the repository at this point in the history
Fix pod list retry, reset start timer
  • Loading branch information
tstromberg authored Oct 30, 2019
2 parents 94e0f28 + 8b24eaf commit 0e2544b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,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{}
Expand Down

0 comments on commit 0e2544b

Please sign in to comment.