node_task_test.go
680 字节
package service
import (
"testing"
"time"
)
func TestSendEvaluationNode(t *testing.T) {
// nowTime, _ := time.ParseInLocation("2006-01-02 15:04:05", "2023-05-12 23:00:00", time.Local)
// nowTime, _ := time.ParseInLocation("2006-01-02 15:04:05", "2023-05-13 23:00:00", time.Local)
nowTime, _ := time.ParseInLocation("2006-01-02 15:04:05", "2023-05-14 23:00:00", time.Local)
// nowTime, _ := time.ParseInLocation("2006-01-02 15:04:05", "2023-05-10 23:00:00", time.Local)
// nowTime, _ := time.ParseInLocation("2006-01-02 15:04:05", "2023-05-10 23:00:00", time.Local)
srv := NewNodeTaskService()
err := srv.SendEvaluationNode(nowTime)
if err != nil {
t.Error(err)
}
}