Files
EdgeAPI/internal/tasks/log_task_test.go

29 lines
395 B
Go
Raw Normal View History

package tasks
import (
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestLogTask_loopClean(t *testing.T) {
dbs.NotifyReady()
task := NewLogTask()
2022-03-08 19:55:39 +08:00
err := task.loopClean()
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}
func TestLogTask_loopMonitor(t *testing.T) {
dbs.NotifyReady()
task := NewLogTask()
err := task.loopMonitor(10)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}