Skip to content

Commit

Permalink
sig-proxy system test: bump timeout
Browse files Browse the repository at this point in the history
...and instrument with 'podman ps'es for debugging failures.

Test flakes pretty regularly in Fedora gating. If the increased
timeout doesn't help, at least we should be able to see if the
container is stopping or failed or something.

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Jan 17, 2023
1 parent cf40adb commit dc2bd08
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/system/032-sig-proxy.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function _test_sigproxy() {
local kidpid=$2

# Wait for container to appear
local timeout=5
local timeout=10
while :;do
sleep 0.5
run_podman '?' container exists $cname
Expand All @@ -21,6 +21,7 @@ function _test_sigproxy() {
fi
timeout=$((timeout - 1))
if [[ $timeout -eq 0 ]]; then
run_podman ps -a
die "Timed out waiting for container $cname to start"
fi
done
Expand All @@ -30,7 +31,7 @@ function _test_sigproxy() {

# Signal, and wait for container to exit
kill -INT $kidpid
local timeout=10
timeout=20
while :;do
sleep 0.5
run_podman logs $cname
Expand All @@ -39,6 +40,7 @@ function _test_sigproxy() {
fi
timeout=$((timeout - 1))
if [[ $timeout -eq 0 ]]; then
run_podman ps -a
die "Timed out waiting for BYE from container"
fi
done
Expand Down

0 comments on commit dc2bd08

Please sign in to comment.