Skip to content

Commit

Permalink
Allow checksum to be either unset or correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Dec 6, 2024
1 parent 6865235 commit 61c5ccd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions functional_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -2542,8 +2542,10 @@ func testPutMultipartObjectWithChecksums(trailing bool) {
case minio.ChecksumSHA256:
cmpChecksum(st.ChecksumSHA256, want)
case minio.ChecksumCRC64NVME:
// AWS does not send this.
cmpChecksum(st.ChecksumCRC64NVME, "")
// AWS doesn't return part checksum, but may in the future.
if st.ChecksumCRC64NVME != "" {
cmpChecksum(st.ChecksumCRC64NVME, want)
}
}

delete(args, "metadata")
Expand Down

0 comments on commit 61c5ccd

Please sign in to comment.