2
0
mirror of synced 2025-02-23 14:18:13 +00:00
torrent/main_test.go
2020-02-21 12:58:47 +11:00

22 lines
295 B
Go

package torrent
import (
"log"
"os"
"testing"
_ "github.com/anacrolix/envpprof"
)
func init() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
}
func TestMain(m *testing.M) {
TestingTempDir.Init("torrent.test")
code := m.Run()
TestingTempDir.RemoveAll()
// select {}
os.Exit(code)
}