From 1040c824bad2101713246fab1ccf697efee8b2c5 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Thu, 15 Dec 2016 18:33:26 -0800 Subject: [PATCH] registry/handlers: fix incorrect use of Digest.Verifiers Signed-off-by: Stephen J Day --- registry/handlers/api_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/registry/handlers/api_test.go b/registry/handlers/api_test.go index eff5c67b..d0c2def6 100644 --- a/registry/handlers/api_test.go +++ b/registry/handlers/api_test.go @@ -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() {