aboutsummaryrefslogtreecommitdiff
path: root/test/system/250-systemd.bats
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@redhat.com>2022-10-07 10:29:49 +0200
committerValentin Rothberg <vrothberg@redhat.com>2022-10-07 15:43:48 +0200
commit02040089a6c3eb96f231974cdaa4158dc894b5eb (patch)
treefb30b2ba012f5a9d8423e44ed3f39487e0add748 /test/system/250-systemd.bats
parentd33a31524a275245b9535871208a2858ba517ed0 (diff)
downloadpodman-02040089a6c3eb96f231974cdaa4158dc894b5eb.tar.gz
podman-02040089a6c3eb96f231974cdaa4158dc894b5eb.tar.bz2
podman-02040089a6c3eb96f231974cdaa4158dc894b5eb.zip
health checks: make on-failure action retry aware
Make sure that the on-failure actions only kick in once the health check has passed its retries. Also fix race conditions on reading/writing the log. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'test/system/250-systemd.bats')
-rw-r--r--test/system/250-systemd.bats1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats
index ddec3a492..5526728b6 100644
--- a/test/system/250-systemd.bats
+++ b/test/system/250-systemd.bats
@@ -318,6 +318,7 @@ LISTEN_FDNAMES=listen_fdnames" | sort)
run_podman create --name $cname \
--health-cmd /healthcheck \
--health-on-failure=kill \
+ --health-retries=1 \
--restart=on-failure \
$img