athunderx / pkg /cron /cron_test.go
Mr.L
feat: add full alist source code for Docker build
7107f0b
raw
history blame contribute delete
193 Bytes
package cron
import (
"testing"
"time"
)
func TestCron(t *testing.T) {
c := NewCron(time.Second)
c.Do(func() {
t.Logf("cron log")
})
time.Sleep(time.Second * 3)
c.Stop()
c.Stop()
}