forked from TrueCloudLab/distribution
registry/handlers: fix incorrect use of Digest.Verifiers
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
b09de5e105
commit
1040c824ba
1 changed files with 1 additions and 4 deletions
|
@ -552,10 +552,7 @@ func testBlobAPI(t *testing.T, env *testEnv, args blobArgs) *testEnv {
|
|||
})
|
||||
|
||||
// Verify the body
|
||||
verifier, err := layerDigest.Verifier()
|
||||
if err != nil {
|
||||
t.Fatalf("unexpected error getting digest verifier: %s", err)
|
||||
}
|
||||
verifier := layerDigest.Verifier()
|
||||
io.Copy(verifier, resp.Body)
|
||||
|
||||
if !verifier.Verified() {
|
||||
|
|
Loading…
Reference in a new issue