go-common/app/admin/main/usersuit/service/service_test.go
2019-04-22 18:49:16 +08:00

20 lines
269 B
Go

package service
import (
"flag"
"path/filepath"
"time"
"go-common/app/admin/main/usersuit/conf"
)
var s *Service
func init() {
dir, _ := filepath.Abs("../cmd/convey-test.toml")
flag.Set("conf", dir)
conf.Init()
s = New(conf.Conf)
time.Sleep(time.Second)
}