summaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-05-07 22:35:20 +0200
committerMatej Vasek <mvasek@redhat.com>2021-05-10 13:40:06 +0200
commit66e38ca55d9a0079eb7d317b5a70c2623fc90d20 (patch)
tree3ea45c42923ca1954d9e8e01297c75114a0f4d4c /test/apiv2
parent0ce6a65b3961465593470c3457d75b0a846c8d98 (diff)
downloadpodman-66e38ca55d9a0079eb7d317b5a70c2623fc90d20.tar.gz
podman-66e38ca55d9a0079eb7d317b5a70c2623fc90d20.tar.bz2
podman-66e38ca55d9a0079eb7d317b5a70c2623fc90d20.zip
fix: improved "containers/{name}/wait" endpoint
Using event API to detect changes to container instead of polling. Polling was unreliable, sometime change of a state might have been missed. Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/26-containersWait.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/apiv2/26-containersWait.at b/test/apiv2/26-containersWait.at
index 6a628e55a..ec16c35df 100644
--- a/test/apiv2/26-containersWait.at
+++ b/test/apiv2/26-containersWait.at
@@ -15,7 +15,7 @@ CTR="WaitTestingCtr"
t POST "containers/nonExistent/wait?condition=next-exit" 404
-podman create --name "${CTR}" --entrypoint '["sleep", "0.5"]' "${IMAGE}"
+podman create --name "${CTR}" --entrypoint '["true"]' "${IMAGE}"
t POST "containers/${CTR}/wait?condition=non-existent-cond" 400