mirror of
https://github.com/containers/podman.git
synced 2025-06-19 08:09:12 +08:00
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>
This commit is contained in:
@ -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))
|
||||
})
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user