mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Merge pull request #50935 from ndeloof/decode-JSONMessage
introduce ImagePullResponse with helper method to manage JSONMessage stream decoding
This commit is contained in:
@@ -153,9 +153,7 @@ func TestImagePullStoredDigestForOtherRepo(t *testing.T) {
|
||||
|
||||
// Now, pull a totally different repo with a the same digest
|
||||
rdr, err = apiClient.ImagePull(ctx, path.Join(registry.DefaultURL, "other:image@"+desc.Digest.String()), client.ImagePullOptions{})
|
||||
if rdr != nil {
|
||||
assert.Check(t, rdr.Close())
|
||||
}
|
||||
assert.Check(t, rdr.Close())
|
||||
assert.Assert(t, err != nil, "Expected error, got none: %v", err)
|
||||
assert.Assert(t, cerrdefs.IsNotFound(err), err)
|
||||
assert.Check(t, is.ErrorType(err, cerrdefs.IsNotFound))
|
||||
|
||||
Reference in New Issue
Block a user