mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-23 02:18:13 -05:00
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)
|
||
|
}
|