mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-08 19:40:24 +08:00
增加DNS同步任务状态显示
This commit is contained in:
17
internal/tasks/dns_task_executor_test.go
Normal file
17
internal/tasks/dns_task_executor_test.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user