mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
c536c46703
fix task
16 lines
196 B
Go
16 lines
196 B
Go
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)
|
|
}
|