summaryrefslogtreecommitdiff
path: root/test/e2e/exec_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-03-14 15:17:05 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-14 20:38:08 +0000
commitff091cf731cb28e5d38ff843781115d352ea1530 (patch)
tree5b14726f448ba8b0a6c30bdaff159d7ec9b18142 /test/e2e/exec_test.go
parentb85b217f55993955da9ad0cae7735747b2f24390 (diff)
downloadpodman-ff091cf731cb28e5d38ff843781115d352ea1530.tar.gz
podman-ff091cf731cb28e5d38ff843781115d352ea1530.tar.bz2
podman-ff091cf731cb28e5d38ff843781115d352ea1530.zip
sleep does not catch SIGTERM
As Matt pointed out, when running sleep in a container, the clean up was taking a full ten seconds to stop container because sleep does not catch SIGTERM which is the default podman stop signal and it had to wait for SIGKILL. Changing sleep to top should result in better test times. Signed-off-by: baude <bbaude@redhat.com> Closes: #492 Approved by: rhatdan
Diffstat (limited to 'test/e2e/exec_test.go')
-rw-r--r--test/e2e/exec_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/exec_test.go b/test/e2e/exec_test.go
index 6c88cf072..95068a774 100644
--- a/test/e2e/exec_test.go
+++ b/test/e2e/exec_test.go
@@ -41,7 +41,7 @@ var _ = Describe("Podman exec", func() {
})
It("podman exec simple command", func() {
- setup := podmanTest.RunSleepContainer("test1")
+ setup := podmanTest.RunTopContainer("test1")
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))
@@ -51,7 +51,7 @@ var _ = Describe("Podman exec", func() {
})
It("podman exec simple command using latest", func() {
- setup := podmanTest.RunSleepContainer("test1")
+ setup := podmanTest.RunTopContainer("test1")
setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(Equal(0))