From f4723beac6e19d23756ee5a1423fb4eac6819400 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Thu, 26 Sep 2019 10:26:40 -0700 Subject: 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 --- test/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/utils/utils.go') 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()) -- cgit v1.2.3-54-g00ecf