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_executor_test.go
T

25 lines
492 B
Go

//go:build plus
// +build plus
package tasks
import (
teaconst "github.com/TeaOSLab/EdgeAPI/internal/const"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestHealthCheckExecutor_Run(t *testing.T) {
teaconst.IsPlus = true
dbs.NotifyReady()
executor := NewHealthCheckExecutor(35)
results, err := executor.Run()
if err != nil {
t.Fatal(err)
}
for _, result := range results {
t.Log(result.Node.Name, "addr:", result.NodeAddr, "isOk:", result.IsOk, "error:", result.Error)
}
}