issue211_test.go | 4 +++- diff --git a/issue211_test.go b/issue211_test.go index 5d93d1f24650e7252045d69a49d96006c45f7d0c..7794f8a50137974993485f57d1a14f30f3d5a913 100644 --- a/issue211_test.go +++ b/issue211_test.go @@ -26,8 +26,10 @@ require.NoError(t, err) defer cl.Close() td, mi := testutil.GreetingTestTorrent() + mms := storage.NewMMap(td) + defer mms.Close() tt, new, err := cl.AddTorrentSpec(&TorrentSpec{ - Storage: storage.NewMMap(td), + Storage: mms, InfoHash: mi.HashInfoBytes(), InfoBytes: mi.InfoBytes, })