1
0
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:
Pantelis Sampaziotis 2019-11-05 10:57:35 +02:00
parent 91b9458335
commit 2ab650677b

View File

@ -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)