From 4a7fbdb94bfa344019d16f67de3709685cd11e4b Mon Sep 17 00:00:00 2001 From: miampf Date: Fri, 27 Sep 2024 16:17:46 +0200 Subject: [PATCH] reintroduced sleep --- e2e/internal/kubeclient/deploy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/e2e/internal/kubeclient/deploy.go b/e2e/internal/kubeclient/deploy.go index 568fc7a5a7..05c03d069d 100644 --- a/e2e/internal/kubeclient/deploy.go +++ b/e2e/internal/kubeclient/deploy.go @@ -192,6 +192,11 @@ func (c *Kubeclient) checkIfReady(ctx context.Context, name string, namespace st return false, err } if desiredPods <= numPodsReady { + // Wait for 5 more seconds just to be *really* sure that + // the pods are actually up. + sleep, cancel := context.WithTimeout(ctx, time.Second*5) + defer cancel() + <-sleep.Done() return true, nil } case watch.Deleted: