aboutsummaryrefslogtreecommitdiff
path: root/fuzz_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2024-02-21 06:51:28 +0200
committerGravatar GitHub <noreply@github.com> 2024-02-21 05:51:28 +0100
commit190204cf1a4f9999e2739d3825967df445d82d7c (patch)
treed1acd3796778b24edfd2677e52ed69a1ca3eae5c /fuzz_test.go
parentRemove unnecessary build tag go1.21 (#1721) (diff)
downloadfasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.tar.gz
fasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.tar.bz2
fasthttp-190204cf1a4f9999e2739d3825967df445d82d7c.zip
Upgrade golangci-lint to v1.56.2; fix gocritic issues (#1722)
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