Merge pull request #25216 from Honny1/fix-hc-pause-flake

Fix flake test: `podman pause/unpause with HealthCheck interval`
This commit is contained in:
openshift-merge-bot[bot] 2025-02-04 15:21:54 +00:00 committed by GitHub
commit 538a6a3560
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -106,7 +106,11 @@ load helpers.systemd
run_podman healthcheck run $ctrname
is "$output" "" "output from 'podman healthcheck run'"
run -0 systemctl status $cid-*.{service,timer}
# We checking only timer because checking of service caused unexpected exit code 3 of systemctl status.
# Since the status check can be executed when HealthCheck was exited, this caused a termination error code 3
# for systemctl status. Because service was in dead state because HealthCheck exited.
# https://github.com/containers/podman/issues/25204
run -0 systemctl status $cid-*.timer
assert "$output" =~ "active" "service should be running"
run_podman --noout pause $ctrname
@ -121,7 +125,7 @@ load helpers.systemd
run_podman healthcheck run $ctrname
is "$output" "" "output from 'podman healthcheck run'"
run -0 systemctl status $cid-*.{service,timer}
run -0 systemctl status $cid-*.timer
assert "$output" =~ "active" "service should be running"
run_podman rm -t 0 -f $ctrname