add comment to test case

This commit is contained in:
Pantelis Sampaziotis 2019-11-05 10:57:35 +02:00
parent 91b9458335
commit 2ab650677b
1 changed files with 1 additions and 0 deletions

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)