X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=issue211_test.go;h=7794f8a50137974993485f57d1a14f30f3d5a913;hb=a8ab0baec81a0856c38bb5ff77da490670dfbc66;hp=5d93d1f24650e7252045d69a49d96006c45f7d0c;hpb=013634d9f13a7152490bcb9ce3135f74435bc529;p=btrtrc.git diff --git a/issue211_test.go b/issue211_test.go index 5d93d1f2..7794f8a5 100644 --- a/issue211_test.go +++ b/issue211_test.go @@ -26,8 +26,10 @@ func TestDropTorrentWithMmapStorageWhileHashing(t *testing.T) { 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, })