mirror of
https://github.com/containers/podman.git
synced 2026-02-05 06:45:31 +01:00
[v5.6-rhel] test/system: fix test race in exec leak check
On very slow systems it can be that it takes over 5s after the sleep
process was started and until the find_exec_pid_files function finds the
file. This was observed on a ppc64le machine by Red Hat QE.
Just making the sleep longer should fix that problem and it doesn't
really effect the total test time because we stop the container
afterwards so there is no extra delay added with this either.
Fixes: https://issues.redhat.com/browse/RHEL-145596
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit 39750faab3)
Signed-off-by: Tom Sweeney <tomsweney@redhat.com>
This commit is contained in:
committed by
Tom Sweeney
parent
1dce7a7daf
commit
2fe12cf6e0
@@ -65,7 +65,7 @@ load helpers
|
||||
is "$(find_exec_pid_files)" "" "there isn't any exec pid hash file leak"
|
||||
|
||||
# Ensure file is there while container is running
|
||||
run_podman exec -d $cid sleep 5
|
||||
run_podman exec -d $cid sleep 100
|
||||
is "$(find_exec_pid_files)" '.*containers.*exec_pid' "exec_pid file found"
|
||||
|
||||
run_podman rm -t 0 -f $cid
|
||||
|
||||
Reference in New Issue
Block a user