From 72576f8046a9af2cd822e288c4b131c038dc518a Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Tue, 17 Oct 2017 17:09:20 +0300 Subject: [PATCH] more tests for reader close --- reader_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reader_test.go b/reader_test.go index 334bb54..a5d745a 100644 --- a/reader_test.go +++ b/reader_test.go @@ -39,6 +39,8 @@ func TestPBProxyReader(t *testing.T) { if !testReader.closed { t.Errorf("Reader must be closed after call ProxyReader.Close") } + proxyReader.Reader = nil + proxyReader.Close() } type testReaderCloser struct {