client/image_(inspect,history,load,save): Wrap return values

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Paweł Gronowski
2025-10-20 23:37:29 +02:00
committed by Sebastiaan van Stijn
parent 7066eb3736
commit 2d69edd28a
29 changed files with 231 additions and 126 deletions

View File

@@ -101,7 +101,7 @@ func TestImageLoad(t *testing.T) {
assert.NilError(t, err)
assert.Check(t, is.Equal(imageLoadResponse.JSON, tc.expectedResponseJSON))
body, err := io.ReadAll(imageLoadResponse.Body)
body, err := io.ReadAll(imageLoadResponse)
assert.NilError(t, err)
assert.Check(t, is.Equal(string(body), expectedOutput))
})