Add the task service. Ready to tidy the go modules.
This commit is contained in:
@ -31,7 +31,7 @@ func TestCron(t *testing.T) {
|
||||
err := c.AddFunc(spec, func() {
|
||||
i++
|
||||
log.Println("cron running:", i)
|
||||
if i == 2 {
|
||||
if i == 3 {
|
||||
panic("intent to panic.")
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user