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.
 
 
 

19 lines
285 B

package service
import (
"flag"
"path/filepath"
"testing"
"go-common/app/interface/main/captcha/conf"
)
var svr *Service
func TestMain(m *testing.M) {
flag.Parse()
dir, _ := filepath.Abs("../cmd/captcha-test.toml")
flag.Set("conf", dir)
conf.Init()
svr = New(conf.Conf)
}