21 lines
372 B
Go
21 lines
372 B
Go
// Copyright 2023 Liuxiangchao iwind.liu@gmail.com. All rights reserved. Official site: https://goedge.cn .
|
|
//go:build plus
|
|
|
|
package tasks
|
|
|
|
import (
|
|
"github.com/iwind/TeaGo/dbs"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestNewNodeScheduleTask(t *testing.T) {
|
|
dbs.NotifyReady()
|
|
|
|
var task = NewNodeScheduleTask(1 * time.Minute)
|
|
err := task.Loop()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
}
|