From 3213e36430ce0a5a91ee6f652e8d19588538684e Mon Sep 17 00:00:00 2001 From: Kermit Alexander Date: Wed, 17 Mar 2021 23:14:29 +0000 Subject: [PATCH] Always check passed podCondition in WaitForPodCondition. --- test/e2e/framework/pod/wait.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/e2e/framework/pod/wait.go b/test/e2e/framework/pod/wait.go index 4f7e0691f24..fd2075c7bb4 100644 --- a/test/e2e/framework/pod/wait.go +++ b/test/e2e/framework/pod/wait.go @@ -215,10 +215,9 @@ func WaitForPodCondition(c clientset.Interface, ns, podName, desc string, timeou if err != nil { if apierrors.IsNotFound(err) { e2elog.Logf("Pod %q in namespace %q not found. Error: %v", podName, ns, err) - continue + } else { + e2elog.Logf("Get pod %q in namespace %q failed, ignoring for %v. Error: %v", podName, ns, poll, err) } - e2elog.Logf("Get pod %q in namespace %q failed, ignoring for %v. Error: %v", podName, ns, poll, err) - continue } // log now so that current pod info is reported before calling `condition()` e2elog.Logf("Pod %q: Phase=%q, Reason=%q, readiness=%t. Elapsed: %v",