Files
EdgeAPI/internal/tasks/node_log_cleaner_task_test.go

18 lines
240 B
Go
Raw Normal View History

2020-10-09 11:06:37 +08:00
package tasks
2021-05-27 17:09:07 +08:00
import (
"github.com/iwind/TeaGo/dbs"
"testing"
)
2020-10-09 11:06:37 +08:00
func TestNodeLogCleaner_loop(t *testing.T) {
2021-05-27 17:09:07 +08:00
dbs.NotifyReady()
cleaner := &NodeLogCleanerTask{}
2020-10-09 11:06:37 +08:00
err := cleaner.loop()
if err != nil {
t.Fatal(err)
}
t.Log("OK")
}