32 lines
409 B
Go
Raw Normal View History

2019-04-22 02:59:20 +00:00
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())
}