]> Sergey Matveev's repositories - btrtrc.git/blob - main_test.go
Move envpprof imports around
[btrtrc.git] / main_test.go
1 package torrent
2
3 import (
4         "log"
5         "os"
6         "testing"
7
8         _ "github.com/anacrolix/envpprof"
9 )
10
11 func init() {
12         log.SetFlags(log.LstdFlags | log.Lshortfile)
13 }
14
15 func TestMain(m *testing.M) {
16         TestingTempDir.Init("torrent.test")
17         code := m.Run()
18         TestingTempDir.RemoveAll()
19         // select {}
20         os.Exit(code)
21 }