summaryrefslogtreecommitdiff
path: root/test/apiv2/26-containersWait.at
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-05-17 23:16:55 +0200
committerMatej Vasek <mvasek@redhat.com>2021-05-18 20:52:09 +0200
commit92e858914d1a3515ffa1017c5adaad3ef5d89f5b (patch)
treee6b00078d02aa5b4673699e0d2bb090d9f40106f /test/apiv2/26-containersWait.at
parent353f04b53cd0a7c89ac8b2eb836eeb9c0dfa7b6a (diff)
downloadpodman-92e858914d1a3515ffa1017c5adaad3ef5d89f5b.tar.gz
podman-92e858914d1a3515ffa1017c5adaad3ef5d89f5b.tar.bz2
podman-92e858914d1a3515ffa1017c5adaad3ef5d89f5b.zip
fix: response body of containers wait endpoint
The `Error` part of response must be nil (or omitted) if no error occurred. Before this commit a zero value for the struct was returned. Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'test/apiv2/26-containersWait.at')
-rw-r--r--test/apiv2/26-containersWait.at4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/apiv2/26-containersWait.at b/test/apiv2/26-containersWait.at
index ec16c35df..55bcd4592 100644
--- a/test/apiv2/26-containersWait.at
+++ b/test/apiv2/26-containersWait.at
@@ -21,7 +21,9 @@ t POST "containers/${CTR}/wait?condition=non-existent-cond" 400
t POST "containers/${CTR}/wait?condition=not-running" 200
-t POST "containers/${CTR}/wait?condition=next-exit" 200 &
+t POST "containers/${CTR}/wait?condition=next-exit" 200 \
+ .StatusCode=0 \
+ .Error=null &
child_pid=$!
podman start "${CTR}"
wait "${child_pid}"