From 42f43fb3a32e06b1b4abfc11e9d2e25531271447 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 27 May 2024 18:23:25 +0200 Subject: [PATCH] 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 --- test/system/700-play.bats | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/system/700-play.bats b/test/system/700-play.bats index e594f7d328..c36ed04b9b 100644 --- a/test/system/700-play.bats +++ b/test/system/700-play.bats @@ -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 }