实现监控节点在线状态

This commit is contained in:
GoEdgeLab
2020-10-25 18:26:46 +08:00
parent 89b7ee07d4
commit 473ad47a7f
7 changed files with 163 additions and 0 deletions

View File

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