Skip to content

Commit 39750fa

Browse files
committed
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. Signed-off-by: Paul Holzinger <[email protected]>
1 parent 9ac8845 commit 39750fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/system/075-exec.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ load helpers
6464
is "$(find_exec_pid_files)" "" "there isn't any exec pid hash file leak"
6565

6666
# Ensure file is there while container is running
67-
run_podman exec -d $cid sleep 5
67+
run_podman exec -d $cid sleep 100
6868
is "$(find_exec_pid_files)" '.*containers.*exec_pid' "exec_pid file found"
6969

7070
run_podman rm -t 0 -f $cid

0 commit comments

Comments
 (0)