Skip to content

Commit

Permalink
tests: Remove fuzz printing (#775)
Browse files Browse the repository at this point in the history
Only report mismatches in nil state, and make that an error.
  • Loading branch information
klauspost authored Mar 12, 2023
1 parent 34dac29 commit c73f008
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zstd/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ func FuzzDecoder(f *testing.F) {
b1, err1 := io.ReadAll(decLow)
b2, err2 := io.ReadAll(decHi)
if err1 != err2 {
t.Log(err1, err2)
if (err1 == nil) != (err2 == nil) {
t.Errorf("err low: %v, hi: %v", err1, err2)
}
}
if err1 != nil {
b1, b2 = b1[:0], b2[:0]
Expand Down

0 comments on commit c73f008

Please sign in to comment.