aboutsummaryrefslogtreecommitdiff
path: root/client_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 /client_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 'client_test.go')
-rw-r--r--client_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/client_test.go b/client_test.go
index 95ee24e..4842965 100644
--- a/client_test.go
+++ b/client_test.go
@@ -2258,7 +2258,7 @@ type writeErrorConn struct {
}
func (w *writeErrorConn) Write(p []byte) (int, error) {
- return 1, fmt.Errorf("error")
+ return 1, errors.New("error")
}
func (w *writeErrorConn) Close() error {
@@ -2286,7 +2286,7 @@ type readErrorConn struct {
}
func (r *readErrorConn) Read(p []byte) (int, error) {
- return 0, fmt.Errorf("error")
+ return 0, errors.New("error")
}
func (r *readErrorConn) Write(p []byte) (int, error) {
@@ -2849,7 +2849,7 @@ func TestClientConfigureClientFailed(t *testing.T) {
c := &Client{
ConfigureClient: func(hc *HostClient) error {
- return fmt.Errorf("failed to configure")
+ return errors.New("failed to configure")
},
}