Files
EdgeAPI/internal/tasks/node_monitor_task_test.go
2020-10-25 18:26:46 +08:00

18 lines
236 B
Go

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")
}