feat: add aliyundrive driver
This commit is contained in:
15
pkg/cron/cron_test.go
Normal file
15
pkg/cron/cron_test.go
Normal file
@ -0,0 +1,15 @@
|
||||
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 * 5)
|
||||
c.Stop()
|
||||
}
|
Reference in New Issue
Block a user