github.com/anacrolix/torrent@v1.61.0/main_test.go (about) 1 package torrent 2 3 import ( 4 "log" 5 "os" 6 "testing" 7 8 _ "github.com/anacrolix/envpprof" 9 analog "github.com/anacrolix/log" 10 ) 11 12 func init() { 13 log.SetFlags(log.LstdFlags | log.Lshortfile) 14 analog.DefaultTimeFormatter = analog.TimeFormatSecondsSinceInit 15 } 16 17 func TestMain(m *testing.M) { 18 code := m.Run() 19 // select {} 20 os.Exit(code) 21 }