mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:11:54 +08:00
18 lines
240 B
Go
18 lines
240 B
Go
package tasks
|
|
|
|
import (
|
|
"github.com/iwind/TeaGo/dbs"
|
|
"testing"
|
|
)
|
|
|
|
func TestNodeLogCleaner_loop(t *testing.T) {
|
|
dbs.NotifyReady()
|
|
|
|
cleaner := &NodeLogCleanerTask{}
|
|
err := cleaner.loop()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Log("OK")
|
|
}
|