summaryrefslogtreecommitdiff
path: root/test/e2e/rootless_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-12-23 11:47:46 -0600
committerbaude <bbaude@redhat.com>2018-12-23 11:47:46 -0600
commitdf923b26138a449a522cbbf22e4adcc630606a60 (patch)
treeb00dfa35b4d9ef22ffee8a602b78fd01576f599e /test/e2e/rootless_test.go
parenteb982193c5bb949ec75308e91d5698aebe4f9429 (diff)
downloadpodman-df923b26138a449a522cbbf22e4adcc630606a60.tar.gz
podman-df923b26138a449a522cbbf22e4adcc630606a60.tar.bz2
podman-df923b26138a449a522cbbf22e4adcc630606a60.zip
rootless tests using stop is more reliable
when testing rootless containers, it is more reliable to stop a container with a zero timeout than kill a container. We made this change in non-rootless tests as well. When IO or CPU are taxed, it avoids a situation where the kill signal is sent but the container has not been able to update its status when a subsequent action occurs. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/rootless_test.go')
-rw-r--r--test/e2e/rootless_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go
index 5a7f0359a..8e9f9fc8d 100644
--- a/test/e2e/rootless_test.go
+++ b/test/e2e/rootless_test.go
@@ -210,7 +210,7 @@ var _ = Describe("Podman rootless", func() {
cmd.WaitWithDefaultTimeout()
Expect(cmd.ExitCode()).To(Equal(0))
- cmd = rootlessTest.PodmanAsUser([]string{"kill", "-l"}, 1000, 1000, env)
+ cmd = rootlessTest.PodmanAsUser([]string{"stop", "-l", "-t", "0"}, 1000, 1000, env)
cmd.WaitWithDefaultTimeout()
Expect(cmd.ExitCode()).To(Equal(0))