2021-06-23 07:24:50 +00:00
|
|
|
//go:build !wasm
|
2021-10-28 08:53:04 +00:00
|
|
|
// +build !wasm
|
2021-06-23 07:24:50 +00: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)
|
|
|
|
}
|