summaryrefslogtreecommitdiff
path: root/test/e2e/push_test.go
diff options
context:
space:
mode:
authorTomSweeneyRedHat <tsweeney@redhat.com>2018-04-02 12:13:08 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-02 17:57:28 +0000
commit2eb38a02715981dfff8124978351d22569b68515 (patch)
treef75dcff5772f9675c525cf8122aabc652b8ee62c /test/e2e/push_test.go
parent0edfce526916712d370701a5ca6457b7df1ab2e5 (diff)
downloadpodman-2eb38a02715981dfff8124978351d22569b68515.tar.gz
podman-2eb38a02715981dfff8124978351d22569b68515.tar.bz2
podman-2eb38a02715981dfff8124978351d22569b68515.zip
Sleep for 5 seconds before pushing to registry in tests
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Closes: #576 Approved by: rhatdan
Diffstat (limited to 'test/e2e/push_test.go')
-rw-r--r--test/e2e/push_test.go4
1 files changed, 4 insertions, 0 deletions
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))