Skip to content

Commit

Permalink
reintroduced sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
miampf committed Oct 4, 2024
1 parent 4f6e16b commit 4a7fbdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions e2e/internal/kubeclient/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4a7fbdb

Please sign in to comment.