Missing Reader.Close in some tests
This commit is contained in:
parent
9b9a3fb20a
commit
b4f04ddc61
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue