mirror of
https://github.com/distribution/distribution.git
synced 2025-09-10 19:29:33 +00:00
registry/storage: clean up zero-length blob comments
A previous inspection of the code surrounding zero-length blobs led to some interesting question. After inspection, it was found that the hash was indeed for the empty string (""), and not an empty tar, so the code was correct. The variable naming and comments have been updated accordingly. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
@@ -530,7 +530,7 @@ func TestLayerUploadZeroLength(t *testing.T) {
|
||||
}
|
||||
bs := repository.Blobs(ctx)
|
||||
|
||||
simpleUpload(t, bs, []byte{}, digestSha256EmptyTar)
|
||||
simpleUpload(t, bs, []byte{}, digestSha256Empty)
|
||||
}
|
||||
|
||||
func simpleUpload(t *testing.T, bs distribution.BlobIngester, blob []byte, expectedDigest digest.Digest) {
|
||||
|
Reference in New Issue
Block a user