aboutsummaryrefslogtreecommitdiff
path: root/fuzz_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'fuzz_test.go')
-rw-r--r--fuzz_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fuzz_test.go b/fuzz_test.go
index 01ea4f7..e07f1a0 100644
--- a/fuzz_test.go
+++ b/fuzz_test.go
@@ -44,7 +44,7 @@ func FuzzResponseReadLimitBody(f *testing.F) {
f.Fuzz(func(t *testing.T, body []byte, max int) {
// Don't do bodies bigger than 10kb.
- max = max % (10 * 1024)
+ max %= (10 * 1024)
var res Response
@@ -59,7 +59,7 @@ func FuzzRequestReadLimitBody(f *testing.F) {
f.Fuzz(func(t *testing.T, body []byte, max int) {
// Don't do bodies bigger than 10kb.
- max = max % (10 * 1024)
+ max %= (10 * 1024)
var req Request