mirror of
https://github.com/containers/podman.git
synced 2026-07-10 07:15:05 -04:00
test/system: fix "podman stop - unlock while waiting for timeout"
In highly parallel runs this can fail its timeout due the fact that we run podman ps -a which takes all contianer locks, even the ones from unrelated tests. thus this command can take a long time, from a CI log I see: [18:22:30.932958589] # /var/tmp/podman/bin/podman ps -a [18:22:34.338904713] CONTAINER ID IMAGE So like a 4s delay just on that and hence the test later failed with "Operations took too long" as it took 7 seconds overall. So since we know podman inspect takes the lock just keep that and not try to get all containers for no reason. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@@ -198,9 +198,7 @@ load helpers
|
||||
sleep 0.5
|
||||
done
|
||||
|
||||
# Other commands can acquire the lock
|
||||
run_podman ps -a
|
||||
|
||||
# This command must be able to take the container lock.
|
||||
# The container state transitioned to "stopping"
|
||||
run_podman inspect --format '{{.State.Status}}' $ctrname
|
||||
is "$output" "stopping" "Status of container should be 'stopping'"
|
||||
|
||||
Reference in New Issue
Block a user