2
0
mirror of synced 2025-02-22 21:58:24 +00:00
torrent/torrent_mmap_test.go
afjoseph 013634d9f1 Revert "Remove old-style build tags"
This reverts commit 11ae25660ad3048ee5736694793fead3305f5c5b.
2021-11-01 11:26:58 +11:00

19 lines
332 B
Go

//go:build !wasm
// +build !wasm
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)
}