12345678910111213141516171819202122232425262728293031 |
- package service
- import (
- "context"
- "flag"
- "testing"
- "go-common/app/job/main/aegis/conf"
- "go-common/library/log"
- )
- var (
- s *Service
- )
- func initConf() {
- if err := conf.Init(); err != nil {
- panic(err)
- }
- log.Init(conf.Conf.Log)
- }
- func init() {
- flag.Set("conf", "../cmd/aegis-job.toml")
- initConf()
- s = New(conf.Conf)
- }
- func Test_syncReport(t *testing.T) {
- s.syncReport(context.Background())
- }
|