mirror of
https://github.com/golang/go
synced 2024-09-29 20:24:34 -06: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 {
|
||||
t.Errorf("Empty buffer read returned n=%d err=%v", n, err)
|
||||
}
|
||||
// Second call should timeout
|
||||
n, err = tor.Read(b)
|
||||
if g, w := err, ErrTimeout; g != w {
|
||||
t.Errorf("Error mismatch\n\tGot: %v\n\tWant: %v", g, w)
|
||||
|
Loading…
Reference in New Issue
Block a user