Commit 397ef496 authored by Siyu Wang's avatar Siyu Wang Committed by FillZpp
Browse files

Fix e2e failure for pulling image (#802)

Signed-off-by: default avatarFillZpp <FillZpp.pub@gmail.com>
parent 50802e6e
Showing with 5 additions and 3 deletions
+5 -3
......@@ -132,9 +132,11 @@ var _ = SIGDescribe("PullImage", func() {
}, 25*time.Second, 2*time.Second).Should(gomega.Equal(true))
ginkgo.By("Check image should be cleaned in NodeImage")
found, err := testerForNodeImage.IsImageInSpec(job.Spec.Image, nodes[0].Name)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
gomega.Expect(found).To(gomega.Equal(false))
gomega.Eventually(func() bool {
found, err := testerForNodeImage.IsImageInSpec(job.Spec.Image, nodes[0].Name)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
return found
}, 10*time.Second, time.Second).Should(gomega.Equal(false))
})
ginkgo.It("create an always job to pull an image on one real node", func() {
......
Supports Markdown
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