Skip to content

Commit

Permalink
Retry failed image pulls. Closes #23669.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock committed Apr 1, 2016
1 parent 8002e10 commit 015b9a6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/e2e_node/conformance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ import (
)

const (
retryTimeout = 4 * time.Minute
pollInterval = time.Second * 5
retryTimeout = time.Minute * 4
pollInterval = time.Second * 5
imageRetryTimeout = time.Minute * 2
imagePullInterval = time.Second * 15
)

var _ = Describe("Container Conformance Test", func() {
Expand All @@ -55,10 +57,10 @@ var _ = Describe("Container Conformance Test", func() {
conformImages = append(conformImages, image)
}
for _, image := range conformImages {
if err := image.Pull(); err != nil {
Expect(err).NotTo(HaveOccurred())
break
}
// Pulling images from gcr.io is flaky, so retry failures
Eventually(func() error {
return image.Pull()
}, imageRetryTimeout, imagePullInterval).ShouldNot(HaveOccurred())
}
})
It("it should list pulled images [Conformance]", func() {
Expand Down

1 comment on commit 015b9a6

@k8s-teamcity-mesosphere

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity OSS :: Kubernetes Mesos :: 4 - Smoke Tests Build 20378 outcome was SUCCESS
Summary: Tests passed: 1, ignored: 267 Build time: 00:11:05

Please sign in to comment.