]> Sergey Matveev's repositories - btrtrc.git/blobdiff - issue211_test.go
Include holepunch message protocol family in metrics
[btrtrc.git] / issue211_test.go
index e9b9f0f37620b4a153ed0c56f17333bf81cb658c..7794f8a50137974993485f57d1a14f30f3d5a913 100644 (file)
@@ -1,4 +1,5 @@
 //go:build !wasm
+// +build !wasm
 
 package torrent
 
@@ -25,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,
        })