Skip to content

Commit

Permalink
testing: fix TestListMultipartUploadParts
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan committed Sep 26, 2023
1 parent 8f864e3 commit d69e32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (u *uploader) UploadPart(bucket, object string, id UploadID, partNumber int
// from guaranteed unique input:
hash := md5.New()
hash.Write([]byte(body))
etag := fmt.Sprintf(`"%s"`, hex.EncodeToString(hash.Sum(nil)))
etag := formatETag(hex.EncodeToString(hash.Sum(nil)))

part := multipartUploadPart{
PartNumber: partNumber,
Expand All @@ -400,7 +400,7 @@ func (u *uploader) UploadPart(bucket, object string, id UploadID, partNumber int
}
mpu.parts[partNumber] = &part

return &UploadPartResult{ETag: formatETag(etag)}, nil
return &UploadPartResult{ETag: etag}, nil
}

func (u *uploader) CompleteMultipartUpload(bucket, object string, id UploadID, input *CompleteMultipartUploadRequest) (*CompleteMultipartUploadResult, error) {
Expand Down

0 comments on commit d69e32b

Please sign in to comment.