Commit 5d80d6ef authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #17043 from brendandburns/e2e5

Auto commit by PR queue bot
parents 6a34b2cc d538ad69
...@@ -420,6 +420,14 @@ var _ = Describe("Nodes", func() { ...@@ -420,6 +420,14 @@ var _ = Describe("Nodes", func() {
if err := waitForClusterSize(c, testContext.CloudConfig.NumNodes, 10*time.Minute); err != nil { if err := waitForClusterSize(c, testContext.CloudConfig.NumNodes, 10*time.Minute); err != nil {
Failf("Couldn't restore the original cluster size: %v", err) Failf("Couldn't restore the original cluster size: %v", err)
} }
// Many e2e tests assume that the cluster is fully healthy before they start. Wait until
// the cluster is restored to health.
By("waiting for system pods to successfully restart")
pods, err := framework.Client.Pods(api.NamespaceSystem).List(labels.Everything(), fields.Everything())
Expect(err).NotTo(HaveOccurred())
err = waitForPodsRunningReady(api.NamespaceSystem, len(pods.Items), podReadyBeforeTimeout)
Expect(err).NotTo(HaveOccurred())
}) })
It("should be able to delete nodes", func() { It("should be able to delete nodes", func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment