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.
23 lines
316 B
23 lines
316 B
package service |
|
|
|
import ( |
|
"flag" |
|
"fmt" |
|
"path/filepath" |
|
"testing" |
|
|
|
"go-common/app/service/main/msm/conf" |
|
) |
|
|
|
var ( |
|
svr *Service |
|
) |
|
|
|
func TestMain(m *testing.M) { |
|
flag.Parse() |
|
dir, _ := filepath.Abs("../cmd/msm-service-example.toml") |
|
fmt.Println(dir) |
|
flag.Set("conf", dir) |
|
conf.Init() |
|
svr = New(conf.Conf) |
|
}
|
|
|