aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-24 08:57:46 -0400
committerGitHub <noreply@github.com>2022-05-24 08:57:46 -0400
commitd069ad108246a15b57481afd12ef7ffd5667e1d2 (patch)
treedfd383eb8da72804f83b070642769b5b0f8bb87c /test
parent737b100c5e0bf704bae6864621c3cf5eb41df2bf (diff)
parentf5450b1e8299e8a11251c3c33c78d80c6e51c96d (diff)
downloadpodman-d069ad108246a15b57481afd12ef7ffd5667e1d2.tar.gz
podman-d069ad108246a15b57481afd12ef7ffd5667e1d2.tar.bz2
podman-d069ad108246a15b57481afd12ef7ffd5667e1d2.zip
Merge pull request #14338 from vrothberg/flakes
system tests: fix flake waiting for container to run
Diffstat (limited to 'test')
-rw-r--r--test/system/helpers.bash10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash
index 6868f2691..fe9e971fb 100644
--- a/test/system/helpers.bash
+++ b/test/system/helpers.bash
@@ -397,25 +397,25 @@ function _ensure_pod_state() {
for i in {0..5}; do
run_podman pod inspect $1 --format "{{.State}}"
if [[ $output == "$2" ]]; then
- break
+ return
fi
sleep 0.5
done
- is "$output" "$2" "unexpected pod state"
+ die "Timed out waiting for pod $1 to enter state $2"
}
# Wait for the container's (1st arg) running state (2nd arg)
function _ensure_container_running() {
- for i in {0..5}; do
+ for i in {0..20}; do
run_podman container inspect $1 --format "{{.State.Running}}"
if [[ $output == "$2" ]]; then
- break
+ return
fi
sleep 0.5
done
- is "$output" "$2" "unexpected pod state"
+ die "Timed out waiting for container $1 to enter state running=$2"
}
###########################