From 2ab650677bb9cad43ea2ce620c9898123c7ec396 Mon Sep 17 00:00:00 2001 From: Pantelis Sampaziotis Date: Tue, 5 Nov 2019 10:57:35 +0200 Subject: [PATCH] add comment to test case --- src/testing/iotest/reader_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/testing/iotest/reader_test.go b/src/testing/iotest/reader_test.go index da4daa4229..9397837e08 100644 --- a/src/testing/iotest/reader_test.go +++ b/src/testing/iotest/reader_test.go @@ -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)