diff --git a/distribution/push_v2_test.go b/distribution/push_v2_test.go index 9bf3675ece59c86b67347e792f06d2e62f62d95c..ca0db486f53d36a6e7431e89931714c137dcf311 100644 --- a/distribution/push_v2_test.go +++ b/distribution/push_v2_test.go @@ -549,7 +549,7 @@ type mockBlobStoreWithCreate struct { } func (blob *mockBlobStoreWithCreate) Create(ctx context.Context, options ...distribution.BlobCreateOption) (distribution.BlobWriter, error) { - return nil, errcode.Errors(append([]error{errcode.ErrorCodeUnauthorized.WithMessage("unauthorized")})) + return nil, errcode.Errors([]error{errcode.ErrorCodeUnauthorized.WithMessage("unauthorized")}) } type mockRepoWithBlob struct {