fix hy tls bug

fix task
This commit is contained in:
yuzuki999
2023-06-18 03:37:27 +08:00
parent 7ac6232639
commit c536c46703
7 changed files with 28 additions and 19 deletions

15
common/task/task_test.go Normal file
View 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)
}