2
0
mirror of synced 2025-02-23 22:28:11 +00:00
torrent/main_test.go

22 lines
330 B
Go
Raw Normal View History

package torrent
import (
"log"
"os"
"testing"
2020-02-21 12:58:47 +11:00
_ "github.com/anacrolix/envpprof"
2023-05-18 21:25:44 +10:00
analog "github.com/anacrolix/log"
)
func init() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
2023-05-18 21:25:44 +10:00
analog.DefaultTimeFormatter = analog.TimeFormatSecondsSinceInit
}
func TestMain(m *testing.M) {
code := m.Run()
// select {}
os.Exit(code)
}