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/node_log_cleaner_task_test.go
T

20 lines
324 B
Go

package tasks_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/tasks"
"github.com/iwind/TeaGo/dbs"
"testing"
"time"
)
func TestNodeLogCleaner_loop(t *testing.T) {
dbs.NotifyReady()
var cleaner = tasks.NewNodeLogCleanerTask(24 * time.Hour)
err := cleaner.Loop()
if err != nil {
t.Fatal(err)
}
t.Log("OK")
}