summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2019-09-26 10:26:40 -0700
committerJhon Honce <jhonce@redhat.com>2019-09-26 14:11:54 -0700
commitf4723beac6e19d23756ee5a1423fb4eac6819400 (patch)
tree5b6e962601b0cf1abd15f94733df643149d10b0d /test/utils
parent851e3775d5d2e605bcb612054a94ac6de005f834 (diff)
downloadpodman-f4723beac6e19d23756ee5a1423fb4eac6819400.tar.gz
podman-f4723beac6e19d23756ee5a1423fb4eac6819400.tar.bz2
podman-f4723beac6e19d23756ee5a1423fb4eac6819400.zip
Change ginkgo Wait() to Eventually() test
Changing the test in WaitWithDefaultTimeout() to use Eventually() and gexec.Exit(). Using ExitCode() before command has really exited returns a -1, which can cause issues for tests testing for podman to return non-zero values. Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'test/utils')
-rw-r--r--test/utils/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils/utils.go b/test/utils/utils.go
index 028107d46..2ae140fab 100644
--- a/test/utils/utils.go
+++ b/test/utils/utils.go
@@ -320,7 +320,7 @@ func (s *PodmanSession) IsJSONOutputValid() bool {
// WaitWithDefaultTimeout waits for process finished with defaultWaitTimeout
func (s *PodmanSession) WaitWithDefaultTimeout() {
- s.Wait(defaultWaitTimeout)
+ Eventually(s, defaultWaitTimeout).Should(gexec.Exit())
os.Stdout.Sync()
os.Stderr.Sync()
fmt.Println("output:", s.OutputToString())