19 lines
332 B
Go
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)
|
|
}
|