registry/handlers: fix incorrect use of Digest.Verifiers

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2016-12-15 18:33:26 -08:00
parent b09de5e105
commit 1040c824ba
No known key found for this signature in database
GPG key ID: FB5F6B2905D7ECF3

View file

@ -552,10 +552,7 @@ func testBlobAPI(t *testing.T, env *testEnv, args blobArgs) *testEnv {
}) })
// Verify the body // Verify the body
verifier, err := layerDigest.Verifier() verifier := layerDigest.Verifier()
if err != nil {
t.Fatalf("unexpected error getting digest verifier: %s", err)
}
io.Copy(verifier, resp.Body) io.Copy(verifier, resp.Body)
if !verifier.Verified() { if !verifier.Verified() {