aboutsummaryrefslogtreecommitdiff
path: root/compress_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2024-03-02 17:21:23 +0200
committerGravatar GitHub <noreply@github.com> 2024-03-02 16:21:23 +0100
commit7e1fb718543e4e00f807f081b63ba387570690f4 (patch)
tree1e0113099797442dffa8e77f4b1062c25d3de4be /compress_test.go
parenttest: remove `//nolint:govet` comments (#1729) (diff)
downloadfasthttp-7e1fb718543e4e00f807f081b63ba387570690f4.tar.gz
fasthttp-7e1fb718543e4e00f807f081b63ba387570690f4.tar.bz2
fasthttp-7e1fb718543e4e00f807f081b63ba387570690f4.zip
Enable perfsprint linter; fix up lint issues (#1727)
Diffstat (limited to 'compress_test.go')
-rw-r--r--compress_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/compress_test.go b/compress_test.go
index 329f0f5..e597267 100644
--- a/compress_test.go
+++ b/compress_test.go
@@ -2,6 +2,7 @@ package fasthttp
import (
"bytes"
+ "errors"
"fmt"
"io"
"testing"
@@ -225,7 +226,7 @@ func testConcurrent(concurrency int, f func() error) error {
return err
}
case <-time.After(time.Second):
- return fmt.Errorf("timeout")
+ return errors.New("timeout")
}
}
return nil