aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Tiago Peczenyj <tpeczenyj@weborama.com> 2023-11-05 14:48:00 +0100
committerGravatar GitHub <noreply@github.com> 2023-11-05 14:48:00 +0100
commitdeda595822a58eff8bed57db4c618f1a054c323e (patch)
tree1a6dee5c0cc9a5f4cc8c2a4b99b4de5b87832bc0
parentAdd support to fs.fs on serve static files (#1640) (diff)
downloadfasthttp-deda595822a58eff8bed57db4c618f1a054c323e.tar.gz
fasthttp-deda595822a58eff8bed57db4c618f1a054c323e.tar.bz2
fasthttp-deda595822a58eff8bed57db4c618f1a054c323e.zip
fix benchmark panics on client_timing_test.go (#1643)
* Update client_timing_test.go fix benchmark panics * must gofumpt
-rw-r--r--client_timing_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/client_timing_test.go b/client_timing_test.go
index 0755155..416ad53 100644
--- a/client_timing_test.go
+++ b/client_timing_test.go
@@ -23,6 +23,14 @@ type fakeClientConn struct {
ch chan struct{}
}
+func (c *fakeClientConn) SetWriteDeadline(t time.Time) error {
+ return nil
+}
+
+func (c *fakeClientConn) SetReadDeadline(t time.Time) error {
+ return nil
+}
+
func (c *fakeClientConn) Write(b []byte) (int, error) {
c.ch <- struct{}{}
return len(b), nil