From b4f04ddc61e463349e824401339904944a044b0d Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 5 Feb 2016 01:17:26 +1100 Subject: [PATCH] Missing Reader.Close in some tests --- client_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client_test.go b/client_test.go index 408cf03a..734dfea3 100644 --- a/client_test.go +++ b/client_test.go @@ -535,6 +535,7 @@ func TestResponsive(t *testing.T) { }, }) reader := leecherTorrent.NewReader() + defer reader.Close() reader.SetReadahead(0) reader.SetResponsive() b := make([]byte, 2) @@ -581,6 +582,7 @@ func TestTorrentDroppedDuringResponsiveRead(t *testing.T) { }, }) reader := leecherTorrent.NewReader() + defer reader.Close() reader.SetReadahead(0) reader.SetResponsive() b := make([]byte, 2)