Merge pull request #114533 from songxiao-wang87/runwxs-test7

don't assert error inside wait.Poll loops
This commit is contained in:
Kubernetes Prow Robot 2022-12-16 04:52:36 -08:00 committed by GitHub
commit 64b6cec843
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,9 @@ func (r *RestartDaemonConfig) waitUp() {
} }
err := wait.Poll(r.pollInterval, r.pollTimeout, func() (bool, error) { err := wait.Poll(r.pollInterval, r.pollTimeout, func() (bool, error) {
result, err := e2essh.NodeExec(r.nodeName, healthzCheck, framework.TestContext.Provider) result, err := e2essh.NodeExec(r.nodeName, healthzCheck, framework.TestContext.Provider)
framework.ExpectNoError(err) if err != nil {
return false, err
}
if result.Code == 0 { if result.Code == 0 {
httpCode, err := strconv.Atoi(result.Stdout) httpCode, err := strconv.Atoi(result.Stdout)
if err != nil { if err != nil {