mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 05:58:29 -05:00
25 lines
342 B
Go
25 lines
342 B
Go
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()
|
|
}
|