summaryrefslogtreecommitdiff
path: root/test/e2e/system_service_test.go
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-12-06 14:25:04 +0100
committerValentin Rothberg <rothberg@redhat.com>2021-12-06 14:28:34 +0100
commit6d7e6d7447338e75a01b45bc931bba98c9f20c5b (patch)
tree8653ff70904a8c56d249b3f8f4e9ae5ebc3d4a2e /test/e2e/system_service_test.go
parent188f1989faa7de371558cb5466132edcfe62eda3 (diff)
downloadpodman-6d7e6d7447338e75a01b45bc931bba98c9f20c5b.tar.gz
podman-6d7e6d7447338e75a01b45bc931bba98c9f20c5b.tar.bz2
podman-6d7e6d7447338e75a01b45bc931bba98c9f20c5b.zip
e2e: fix pprof flakes
Give the services some more time after SIGINT to shutdown. `Eventually(session, 5)` will poll the session for the specific condition at a frequency of 10ms for at most 5 seconds. Fixes: #12167 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/e2e/system_service_test.go')
-rw-r--r--test/e2e/system_service_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/e2e/system_service_test.go b/test/e2e/system_service_test.go
index 9a4d687c3..922a8c423 100644
--- a/test/e2e/system_service_test.go
+++ b/test/e2e/system_service_test.go
@@ -45,8 +45,6 @@ var _ = Describe("podman system service", func() {
defer session.Kill()
WaitForService(address)
-
- session.Wait(5 * time.Second)
Eventually(session, 5).Should(Exit(0))
})
})
@@ -91,7 +89,7 @@ var _ = Describe("podman system service", func() {
Expect(body).ShouldNot(BeEmpty())
session.Interrupt().Wait(2 * time.Second)
- Eventually(session).Should(Exit(1))
+ Eventually(session, 5).Should(Exit(1))
})
It("are not available", func() {
@@ -113,7 +111,7 @@ var _ = Describe("podman system service", func() {
Expect(session.Err.Contents()).ShouldNot(ContainSubstring(magicComment))
session.Interrupt().Wait(2 * time.Second)
- Eventually(session).Should(Exit(1))
+ Eventually(session, 5).Should(Exit(1))
})
})
})