Skip to content

Commit

Permalink
CI: systests: workaround for parallel podman-stop flake
Browse files Browse the repository at this point in the history
Just bump up a timeout when running parallel, because of high load.

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Nov 4, 2024
1 parent 2279a77 commit 2c01264
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/system/050-stop.bats
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,13 @@ load helpers
is "$output" "0" "Exit code of stopped container"

# The 'stop' command should return almost instantaneously
local howlong=2
# ...unless running parallel, due to high system load.
if [[ -n "$PARALLEL_JOBSLOT" ]]; then
howlong=4
fi
delta_t=$(( $t1 - $t0 ))
assert $delta_t -le 2 "podman stop: took too long"
assert $delta_t -le $howlong "podman stop: took too long"

run_podman rm $cid
done
Expand Down

0 comments on commit 2c01264

Please sign in to comment.