Skip to content

Commit

Permalink
Merge pull request containers#10318 from Luap99/fix-network-test
Browse files Browse the repository at this point in the history
fix network restart always test
  • Loading branch information
openshift-merge-robot authored May 12, 2021
2 parents e1d6e65 + fa6b6b8 commit d8dc56b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/system/500-networking.bats
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ load helpers
# Wait for container to restart
retries=20
while :;do
run_podman '?' container inspect --format "{{.State.Pid}}" myweb
if [[ $status -eq 0 ]]; then
run_podman container inspect --format "{{.State.Pid}}" myweb
# pid is 0 as long as the container is not running
if [[ $output -ne 0 ]]; then
if [[ $output == $pid ]]; then
die "This should never happen! Restarted container has same PID ($output) as killed one!"
fi
Expand Down

0 comments on commit d8dc56b

Please sign in to comment.