Missing Reader.Close in some tests

This commit is contained in:
Matt Joiner 2016-02-05 01:17:26 +11:00
parent 9b9a3fb20a
commit b4f04ddc61
1 changed files with 2 additions and 0 deletions

View File

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