mirror of
https://github.com/containers/podman.git
synced 2025-12-01 10:38:05 +08:00
Merge pull request #22764 from giuseppe/give-more-time-to-healthcheck-status-change
libpod: wait another interval for healthcheck
This commit is contained in:
@@ -234,13 +234,22 @@ READY=1" "Container log after healthcheck run"
|
||||
|
||||
run_podman rm -f -t0 $ctr
|
||||
|
||||
ctr=$(random_string)
|
||||
run_podman run --name $ctr \
|
||||
--health-cmd="touch /terminate" \
|
||||
--sdnotify=healthy \
|
||||
$IMAGE sh -c 'while test \! -e /terminate; do sleep 0.1; done; echo finished'
|
||||
is "$output" "finished" "make sure container exited successfully"
|
||||
run_podman rm -f -t0 $ctr
|
||||
# Disable until the race condition https://github.com/containers/podman/issues/22760 is fixed
|
||||
# ctr=$(random_string)
|
||||
# run_podman run --name $ctr \
|
||||
# --health-cmd="touch /terminate" \
|
||||
# --sdnotify=healthy \
|
||||
# $IMAGE sh -c 'while test \! -e /terminate; do sleep 0.1; done; echo finished'
|
||||
# is "$output" "finished" "make sure container exited successfully"
|
||||
# run_podman rm -f -t0 $ctr
|
||||
|
||||
# ctr=$(random_string)
|
||||
# run_podman 12 run --name $ctr --rm \
|
||||
# --health-cmd="touch /terminate" \
|
||||
# --sdnotify=healthy \
|
||||
# $IMAGE sh -c 'while test \! -e /terminate; do sleep 0.1; done; echo finished; exit 12'
|
||||
# is "$output" "finished" "make sure container exited"
|
||||
# run_podman rm -f -t0 $ctr
|
||||
|
||||
_stop_socat
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user