This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeAPI/internal/tasks/health_check_cluster_task_test.go
T

18 lines
314 B
Go

package tasks_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/tasks"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestHealthCheckClusterTask_Loop(t *testing.T) {
dbs.NotifyReady()
var task = tasks.NewHealthCheckClusterTask(10, nil)
err := task.Loop()
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}