service_test.go 269 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "flag"
  4. "path/filepath"
  5. "time"
  6. "go-common/app/admin/main/usersuit/conf"
  7. )
  8. var s *Service
  9. func init() {
  10. dir, _ := filepath.Abs("../cmd/convey-test.toml")
  11. flag.Set("conf", dir)
  12. conf.Init()
  13. s = New(conf.Conf)
  14. time.Sleep(time.Second)
  15. }