Skip to content

Commit

Permalink
registry/handlers: fix incorrect use of Digest.Verifiers
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen J Day <[email protected]>
  • Loading branch information
stevvooe committed Dec 16, 2016
1 parent b09de5e commit 1040c82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions registry/handlers/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1040c82

Please sign in to comment.