From 94ba2cf1a1c01762c8365efa633ee6c134673e37 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 27 May 2024 17:51:59 +0200 Subject: [PATCH] test/system: speed up "podman run --timeout" There is really no point in waiting 10s for the kill, let's use 2 this should be good enough to observe the timing. Signed-off-by: Paul Holzinger --- test/system/030-run.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 6da1a817a8..bb12bf6826 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -778,7 +778,7 @@ json-file | f @test "podman run --timeout - basic test" { cid=timeouttest t0=$SECONDS - run_podman 255 run --name $cid --timeout 10 $IMAGE sleep 60 + run_podman 255 run --name $cid --timeout 2 $IMAGE sleep 60 t1=$SECONDS # Confirm that container is stopped. Podman-remote unfortunately # cannot tell the difference between "stopped" and "exited", and @@ -790,8 +790,8 @@ json-file | f # This operation should take # exactly 10 seconds. Give it some leeway. delta_t=$(( $t1 - $t0 )) - assert "$delta_t" -gt 8 "podman stop: ran too quickly!" - assert "$delta_t" -le 14 "podman stop: took too long" + assert "$delta_t" -gt 1 "podman stop: ran too quickly!" + assert "$delta_t" -le 6 "podman stop: took too long" run_podman rm $cid }