Skip to content

Commit

Permalink
fix flake in kube system test
Browse files Browse the repository at this point in the history
Increase the loop range from 5 to 20 to make sure we give the service
enough time to transition to inactive.  Other tests have the same range
with 0.5 seconds sleeps, so I expect the new value to be sufficient and
consistent.

Fixes: #17093
Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg committed Jan 13, 2023
1 parent e473c93 commit 4bb69ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/system/250-systemd.bats
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ EOF
# design yet for propagating exit codes up to the service
# container.
run_podman pod kill test_pod
for i in {0..5}; do
for i in {0..20}; do
run systemctl is-active $service_name
if [[ $output == "inactive" ]]; then
break
Expand Down

0 comments on commit 4bb69ab

Please sign in to comment.