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.
 
 
 

31 lines
409 B

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())
}