mirror of
https://github.com/golang/go
synced 2024-11-17 18:14:46 -07:00
add comment to test case
This commit is contained in:
parent
91b9458335
commit
2ab650677b
@ -124,6 +124,7 @@ func TestTimeOutReader_nonEmptyReader(t *testing.T) {
|
|||||||
if err != nil || n != 0 {
|
if err != nil || n != 0 {
|
||||||
t.Errorf("Empty buffer read returned n=%d err=%v", n, err)
|
t.Errorf("Empty buffer read returned n=%d err=%v", n, err)
|
||||||
}
|
}
|
||||||
|
// Second call should timeout
|
||||||
n, err = tor.Read(b)
|
n, err = tor.Read(b)
|
||||||
if g, w := err, ErrTimeout; g != w {
|
if g, w := err, ErrTimeout; g != w {
|
||||||
t.Errorf("Error mismatch\n\tGot: %v\n\tWant: %v", g, w)
|
t.Errorf("Error mismatch\n\tGot: %v\n\tWant: %v", g, w)
|
||||||
|
Loading…
Reference in New Issue
Block a user