FedP2P/main_test.go

22 lines
295 B
Go
Raw Normal View History

package torrent
import (
"log"
"os"
"testing"
2020-02-21 09:58:47 +08:00
_ "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)
}