Skip to content

Commit

Permalink
fix benchmark panics on client_timing_test.go (#1643)
Browse files Browse the repository at this point in the history
* Update client_timing_test.go

fix benchmark panics

* must gofumpt
  • Loading branch information
peczenyj authored Nov 5, 2023
1 parent 4010b16 commit deda595
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client_timing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit deda595

Please sign in to comment.