From 37120bbe80e93bdef9396e33a1c38d209f249aaf Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Tue, 28 May 2024 11:44:38 +0200 Subject: [PATCH] test/system: speed up podman ps - basic tests Do not wait 5 seconds, just stop the container directly. This speeds up the test by more than 4 seconds. One could make the case here that we want to check podman wait but there are so many other podman wait tests that it should not matter. Signed-off-by: Paul Holzinger --- test/system/040-ps.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/system/040-ps.bats b/test/system/040-ps.bats index f9fc531fa2..5259299ecc 100644 --- a/test/system/040-ps.bats +++ b/test/system/040-ps.bats @@ -24,8 +24,8 @@ load helpers "${cid:0:12} \+$IMAGE \+sleep [0-9]\+ .*second.* $cname"\ "output from podman ps" - # OK. Wait for sleep to finish... - run_podman wait $cid + # OK. Stop container now. + run_podman stop -t0 $cid # ...then make sure container shows up as stopped run_podman ps -a