diff options
author | Ed Santiago <santiago@redhat.com> | 2020-07-14 14:33:22 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-07-14 16:09:58 -0600 |
commit | d3f9f09892d725774a19d373fc913e8722b674b7 (patch) | |
tree | 5bd40c2e7b2262e4a2b035083c57d1c918339540 /completions | |
parent | 50cd21e1811f4fe508a74dc316c81a047de4e8d9 (diff) | |
download | podman-d3f9f09892d725774a19d373fc913e8722b674b7.tar.gz podman-d3f9f09892d725774a19d373fc913e8722b674b7.tar.bz2 podman-d3f9f09892d725774a19d373fc913e8722b674b7.zip |
APIv2 tests: fix race condition causing CI flake
A newly-added test in #6835 was flaking in CI with:
not ok 143 [20-containers] DELETE libpod/containers/SHA
500 cannot remove container <sha> as it is running - running or paused containers cannot be removed without force: container state improper
Root cause: DELETE being run immediately after container start.
Although the container is short-lived, it does take time to
run and exit.
Solution: wait for container to exit (should be quick) before
deleting. This gives us a new test for the /wait endpoint.
Also: tweaked some comments for readability, removed unnecessary
container ps, added actual container status checks, and added
actual message checks to another test that was merely checking
exit status.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'completions')
0 files changed, 0 insertions, 0 deletions