增加DNS同步任务状态显示

This commit is contained in:
GoEdgeLab
2021-01-27 23:00:02 +08:00
parent ff722baf22
commit a73a04521d
19 changed files with 1087 additions and 243 deletions

View File

@@ -0,0 +1,17 @@
package tasks
import (
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestDNSTaskExecutor_Loop(t *testing.T) {
dbs.NotifyReady()
executor := NewDNSTaskExecutor()
err := executor.Loop()
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}