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