service_test.go 272 B

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