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()
|
|
}
|