1.4.5.2
This commit is contained in:
20
EdgeAPI/internal/tasks/node_schedule_task_plus_test.go
Normal file
20
EdgeAPI/internal/tasks/node_schedule_task_plus_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user