mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-05 05:00:08 +00:00
fix hy tls bug
fix task
This commit is contained in:
15
common/task/task_test.go
Normal file
15
common/task/task_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user