Skip to content

Commit

Permalink
Fix e2e failure for pulling image (#802)
Browse files Browse the repository at this point in the history
Signed-off-by: FillZpp <[email protected]>
  • Loading branch information
FillZpp committed Nov 12, 2021
1 parent 50802e6 commit 397ef49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/apps/pullimages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 397ef49

Please sign in to comment.