FedP2P/torrent_mmap_test.go

19 lines
332 B
Go
Raw Normal View History

2021-06-23 15:24:50 +08:00
//go:build !wasm
// +build !wasm
2021-06-23 15:24:50 +08:00
package torrent
import (
"testing"
"github.com/anacrolix/torrent/storage"
)
func TestEmptyFilesAndZeroPieceLengthWithMMapStorage(t *testing.T) {
cfg := TestingConfig(t)
ci := storage.NewMMap(cfg.DataDir)
defer ci.Close()
cfg.DefaultStorage = ci
testEmptyFilesAndZeroPieceLength(t, cfg)
}