Skip to content

Commit

Permalink
client/pkg/transport: fix typo in _test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Fu <fuweid89@gmail.com>
  • Loading branch information
fuweid committed Nov 27, 2022
1 parent 8a88660 commit cd9ade5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/pkg/transport/timeout_dialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func TestReadWriteTimeoutDialer(t *testing.T) {
}

if operr, ok := err.(*net.OpError); !ok || operr.Op != "read" || !operr.Timeout() {
t.Errorf("err = %v, want write i/o timeout error", err)
t.Errorf("err = %v, want read i/o timeout error", err)
}
}

Expand Down
2 changes: 1 addition & 1 deletion client/pkg/transport/timeout_listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func TestWriteReadTimeoutListener(t *testing.T) {
}

if operr, ok := err.(*net.OpError); !ok || operr.Op != "read" || !operr.Timeout() {
t.Errorf("err = %v, want write i/o timeout error", err)
t.Errorf("err = %v, want read i/o timeout error", err)
}
readerStopCh <- struct{}{}
}

0 comments on commit cd9ade5

Please sign in to comment.