Finish the delete and sync by physics.

This commit is contained in:
lishuang committed 2020-07-11 19:56:13 +08:00
1 parent f16d48b432
commit 7fe673068b
5 files changed
+165 -10

No files matched your search

+21
View File
@@ -45,6 +45,27 @@ func TestEveryOneSecondCron(t *testing.T) {
}
func TestSimpleCron(t *testing.T) {
i := 0
var c *cron.Cron
var spec string
//新标准。
c = cron.New()
spec = "@every 2s"
_, _ = c.AddFunc(spec, func() {
i++
log.Println("cron running:", i)
})
c.Start()
time.Sleep(70 * time.Second)
}
func TestValidateCron(t *testing.T) {
spec := "@every 1s"