Files
EdgeAPI/internal/tasks/health_check_task_test.go

19 lines
364 B
Go
Raw Permalink Normal View History

2024-07-27 14:15:25 +08:00
// Copyright 2023 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cloud .
2023-05-28 15:13:15 +08:00
package tasks_test
import (
"testing"
"time"
2024-07-27 14:15:25 +08:00
"github.com/TeaOSLab/EdgeAPI/internal/tasks"
2023-05-28 15:13:15 +08:00
)
func TestNewHealthCheckTask(t *testing.T) {
var task = tasks.NewHealthCheckTask(1 * time.Minute)
err := task.Loop()
if err != nil {
t.Fatal(err)
}
}