fix file close

This commit is contained in:
ar2rworld
2023-10-03 17:09:40 -04:00
parent fc0dec1f1f
commit 12053d10b1

View File

@ -323,6 +323,7 @@ func TestDownloadSections(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer f.Close()
_, err = io.Copy(f, dr)
if err != nil {
t.Fatal(err)