File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,11 @@ load helpers.systemd
106
106
run_podman healthcheck run $ctrname
107
107
is " $output " " " " output from 'podman healthcheck run'"
108
108
109
- run -0 systemctl status $cid -* .{service,timer}
109
+ # We checking only timer because checking of service caused unexpected exit code 3 of systemctl status.
110
+ # Since the status check can be executed when HealthCheck was exited, this caused a termination error code 3
111
+ # for systemctl status. Because service was in dead state because HealthCheck exited.
112
+ # https://github.com/containers/podman/issues/25204
113
+ run -0 systemctl status $cid -* .timer
110
114
assert " $output " =~ " active" " service should be running"
111
115
112
116
run_podman --noout pause $ctrname
@@ -121,7 +125,7 @@ load helpers.systemd
121
125
run_podman healthcheck run $ctrname
122
126
is " $output " " " " output from 'podman healthcheck run'"
123
127
124
- run -0 systemctl status $cid -* .{service, timer}
128
+ run -0 systemctl status $cid -* .timer
125
129
assert " $output " =~ " active" " service should be running"
126
130
127
131
run_podman rm -t 0 -f $ctrname
You can’t perform that action at this time.
0 commit comments