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