V2bX/common/task/task_test.go

16 lines
196 B
Go
Raw Normal View History

2023-06-17 15:37:27 -04:00
package task
import (
"log"
"testing"
"time"
)
func TestTask(t *testing.T) {
ts := Task{Execute: func() error {
log.Println("q")
return nil
}, Interval: time.Second}
ts.Start(false)
}