From 2eb38a02715981dfff8124978351d22569b68515 Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Mon, 2 Apr 2018 12:13:08 -0400 Subject: Sleep for 5 seconds before pushing to registry in tests Signed-off-by: TomSweeneyRedHat Closes: #576 Approved by: rhatdan --- test/e2e/push_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/e2e/push_test.go') diff --git a/test/e2e/push_test.go b/test/e2e/push_test.go index f783fe418..b2c55607f 100644 --- a/test/e2e/push_test.go +++ b/test/e2e/push_test.go @@ -2,6 +2,7 @@ package integration import ( "os" + "time" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -59,6 +60,9 @@ var _ = Describe("Podman push", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) + // Give the registry 5 seconds to warm up before pushing + time.Sleep(5 * time.Second) + push := podmanTest.Podman([]string{"push", "--tls-verify=false", "--remove-signatures", ALPINE, "localhost:5000/my-alpine"}) push.WaitWithDefaultTimeout() Expect(push.ExitCode()).To(Equal(0)) -- cgit v1.2.3-54-g00ecf