gpt-sovits / pkg /cron /cron_test.go
hanfish's picture
111
215df2f verified
raw
history blame contribute delete
No virus
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()
}