test/system: speed up kube play healthcheck initialDelaySeconds

Both tests take 10s longer than they need to because they run the sleep
command int he container which does not react to sigterm, as such podman
waits 10s before killing it with sigkill.

To fix it just stop them with podman rm -fa -t0 to avoid the wait and do
not use podman kube down as we cannot set a timeout there. podman kube
down is still covered in many other tests so this is not an issue.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-05-27 18:23:25 +02:00
parent 9e321aafda
commit 42f43fb3a3

View File

@ -893,8 +893,7 @@ spec:
done
assert $output == "2-healthy" "After 3 seconds"
run_podman kube down $fname
run_podman pod rm -a
run_podman pod rm -fa -t0
run_podman rm -a
}
@ -946,8 +945,7 @@ spec:
done
assert $output == "2-unhealthy" "After 3 seconds"
run_podman kube down $fname
run_podman pod rm -a
run_podman pod rm -fa -t0
run_podman rm -a
}