go-common/app/admin/main/dm/dao/oplog/dao_test.go

25 lines
342 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package oplog
import (
"testing"
"go-common/app/admin/main/dm/conf"
"go-common/library/log"
)
var (
dao *Dao
)
func TestMain(m *testing.M) {
var err error
conf.ConfPath = "../../cmd/dm-admin-test.toml"
if err = conf.Init(); err != nil {
log.Error("conf.Init(%v)", err)
return
}
dao = New(conf.Conf)
m.Run()
//log.Close()
}