mirror of
https://github.com/containers/podman.git
synced 2025-07-01 00:01:02 +08:00
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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user