mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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:
committed by
Sebastiaan van Stijn
parent
7066eb3736
commit
2d69edd28a
@@ -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))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user