From bc7536aba3cf58983f8bda8d73825fbd8232e955 Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Thu, 17 Mar 2022 12:28:34 -0700 Subject: [PATCH] tests: simplify fuzzing code --- reader_fuzz_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/reader_fuzz_test.go b/reader_fuzz_test.go index 4898b49..7e62db4 100644 --- a/reader_fuzz_test.go +++ b/reader_fuzz_test.go @@ -31,11 +31,7 @@ func FuzzReader(f *testing.F) { return } - if l > 1<<6 { - l = 1 << 6 - } buf1 := make([]byte, l) - n, err := r.Read(buf1) if err != nil && err != io.EOF { return @@ -69,11 +65,7 @@ func FuzzReaderConst(f *testing.F) { return } - if l > 1<<6 { - l = 1 << 6 - } buf1 := make([]byte, l) - n, err := r.Read(buf1) if err != nil && err != io.EOF { return