You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
342 B
24 lines
342 B
package dao |
|
|
|
import ( |
|
"os" |
|
"testing" |
|
|
|
"go-common/app/job/main/dm/conf" |
|
"go-common/library/log" |
|
) |
|
|
|
var ( |
|
testDao *Dao |
|
) |
|
|
|
func TestMain(m *testing.M) { |
|
conf.ConfPath = "../cmd/dm-job-test.toml" |
|
if err := conf.Init(); err != nil { |
|
panic(err) |
|
} |
|
log.Init(conf.Conf.Xlog) |
|
defer log.Close() |
|
testDao = New(conf.Conf) |
|
os.Exit(m.Run()) |
|
}
|
|
|