From 66e38ca55d9a0079eb7d317b5a70c2623fc90d20 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Fri, 7 May 2021 22:35:20 +0200 Subject: 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 --- test/apiv2/26-containersWait.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/apiv2') 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 -- cgit v1.2.3-54-g00ecf