e2e_framework:stop using deprecated wait.ErrwaitTimeout

This commit is contained in:
wlq1212
2023-09-04 21:42:10 +08:00
committed by liqing.wu
parent 6586296afc
commit ef235c4eac
9 changed files with 13 additions and 12 deletions

View File

@@ -96,7 +96,7 @@ func WaitForTotalHealthy(ctx context.Context, c clientset.Interface, timeout tim
return len(notReady) == 0 && len(missingPodsPerNode) == 0, nil
})
if err != nil && err != wait.ErrWaitTimeout {
if err != nil && !wait.Interrupted(err) {
return err
}