Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Dec 4, 2024
1 parent f7c6d78 commit 6865235
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions functional_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -2407,10 +2407,6 @@ func testPutMultipartObjectWithChecksums(trailing bool) {

args["section"] = "prep"
bufSize := dataFileMap["datafile-129-MB"]
if false && test.cs.Is(minio.ChecksumFullObjectCRC32) {
c.TraceOn(os.Stdout)
defer c.TraceOff()
}
// Save the data
objectName := randString(60, rand.NewSource(time.Now().UnixNano()), "")
args["objectName"] = objectName
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func (h *hashReaderWrapper) Read(p []byte) (n int, err error) {
return n, err
}

// Followis is ported from C to Go in 2016 by Justin Ruggles, with minimal alteration.
// Following is ported from C to Go in 2016 by Justin Ruggles, with minimal alteration.
// Used uint for unsigned long. Used uint32 for input arguments in order to match
// the Go hash/crc32 package. zlib CRC32 combine (https://github.com/madler/zlib)
// Modified for hash/crc64 by Klaus Post, 2024.
Expand Down
2 changes: 1 addition & 1 deletion utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func TestFullObjectChecksum64(t *testing.T) {
t.Fatal(err)
}
if gotCRC.Encoded() != want {
t.Errorf("Checksum CRC64NVME does not match the expected CRC got:%s want:%s", gotCRC.Encoded(), want)
t.Errorf("Checksum %v does not match the expected CRC got:%s want:%s", cs.String(), gotCRC.Encoded(), want)
}
})
}
Expand Down

0 comments on commit 6865235

Please sign in to comment.