mirror of https://github.com/containers/podman.git
e2e: ExitCleanly(): low-hanging fruit, part 2
Commit 2 of 2: manual tweaks to get tests passing. Very trivial, the vast majority of these test files worked with no changes. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
64c46c4297
commit
4fca726f7b
|
@ -95,7 +95,7 @@ var _ = Describe("Podman pod create", func() {
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(ExitCleanly())
|
Expect(session).Should(ExitCleanly())
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"run", "--pod", podID, fedoraMinimal, "curl", "-f", "localhost:80"})
|
session = podmanTest.Podman([]string{"run", "--pod", podID, fedoraMinimal, "curl", "-s", "-f", "localhost:80"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(ExitCleanly())
|
Expect(session).Should(ExitCleanly())
|
||||||
|
|
||||||
|
|
|
@ -424,7 +424,7 @@ var _ = Describe("Podman ps", func() {
|
||||||
|
|
||||||
session = podmanTest.Podman([]string{"ps", "-a", "--format", "{{.Size}}"})
|
session = podmanTest.Podman([]string{"ps", "-a", "--format", "{{.Size}}"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(ExitCleanly())
|
Expect(session).Should(Exit(0))
|
||||||
Expect(session.ErrorToString()).To(ContainSubstring("Size format requires --size option"))
|
Expect(session.ErrorToString()).To(ContainSubstring("Size format requires --size option"))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -184,7 +184,7 @@ var _ = Describe("Podman stop", func() {
|
||||||
Expect(session).Should(ExitCleanly())
|
Expect(session).Should(ExitCleanly())
|
||||||
session = podmanTest.Podman([]string{"stop", "--timeout", "1", "test5"})
|
session = podmanTest.Podman([]string{"stop", "--timeout", "1", "test5"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(ExitCleanly())
|
Expect(session).Should(Exit(0))
|
||||||
warning := session.ErrorToString()
|
warning := session.ErrorToString()
|
||||||
Expect(warning).To(ContainSubstring("StopSignal SIGTERM failed to stop container test5 in 1 seconds, resorting to SIGKILL"))
|
Expect(warning).To(ContainSubstring("StopSignal SIGTERM failed to stop container test5 in 1 seconds, resorting to SIGKILL"))
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue