Try to abstract the main part.
This commit is contained in:
1 parent
14b6a74666
commit
2732b14eae
14 files changed
+130
-105
No files matched your search
@@ -26,6 +26,9 @@ func TestCron(t *testing.T) {
|
||||
err := c.AddFunc(spec, func() {
|
||||
i++
|
||||
log.Println("cron running:", i)
|
||||
if i == 2 {
|
||||
panic("intent to panic.")
|
||||
}
|
||||
})
|
||||
util.PanicError(err)
|
||||
|
||||
|
||||
Reference in new issue
Block a user