Initial commit (code only without large binaries)
This commit is contained in:
17
EdgeAPI/internal/tasks/health_check_cluster_task_test.go
Normal file
17
EdgeAPI/internal/tasks/health_check_cluster_task_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user