mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
client/pkg/transport: fix typo in _test.go
Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
parent
8a88660262
commit
cd9ade5403
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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{}{}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user