mirror of
https://github.com/containers/podman.git
synced 2025-05-28 13:40:33 +08:00
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>
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user