summaryrefslogtreecommitdiff
path: root/test/e2e/stop_test.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-05 10:30:05 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-03-05 10:39:17 -0500
commitd107c37296d3ad0173e2905ebff0f89fc416e91d (patch)
treee9646d22302a2398bac7a4ac796d1a2e4ccbb225 /test/e2e/stop_test.go
parent0bac30d724643cf84d49e643a17bd8fd304efde1 (diff)
downloadpodman-d107c37296d3ad0173e2905ebff0f89fc416e91d.tar.gz
podman-d107c37296d3ad0173e2905ebff0f89fc416e91d.tar.bz2
podman-d107c37296d3ad0173e2905ebff0f89fc416e91d.zip
podman-remote stop -time 0 does not work
This patch will allow users to pass in the time 0. Currently the timeout will take 10 seconds if user passes in the 0 flag. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/stop_test.go')
-rw-r--r--test/e2e/stop_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/stop_test.go b/test/e2e/stop_test.go
index dd264eb0d..d6d58c94c 100644
--- a/test/e2e/stop_test.go
+++ b/test/e2e/stop_test.go
@@ -150,7 +150,7 @@ var _ = Describe("Podman stop", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- session = podmanTest.Podman([]string{"stop", "--time", "1", "test4"})
+ session = podmanTest.Podman([]string{"stop", "--time", "0", "test4"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
output := session.OutputToString()
@@ -166,7 +166,7 @@ var _ = Describe("Podman stop", func() {
session := podmanTest.Podman([]string{"run", "-d", "--name", "test5", ALPINE, "sleep", "100"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- session = podmanTest.Podman([]string{"stop", "--timeout", "1", "test5"})
+ session = podmanTest.Podman([]string{"stop", "--timeout", "0", "test5"})
// Without timeout container stops in 10 seconds
// If not stopped in 5 seconds, then --timeout did not work
session.Wait(5)