Skip to content

Commit

Permalink
System tests: fix racy podman-inspect
Browse files Browse the repository at this point in the history
Add 'podman wait' between kill & inspect.

Fixes: containers#9751

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed Apr 14, 2021
1 parent 14ec3a6 commit 83930a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/system/050-stop.bats
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ load helpers
is "$output" "stopping" "Status of container should be 'stopping'"

run_podman kill stopme
run_podman wait stopme

# Exit code should be 137 as it was killed
run_podman inspect --format '{{.State.ExitCode}}' stopme
Expand Down

0 comments on commit 83930a0

Please sign in to comment.