Files
EdgeAPI/internal/tasks/ssl_cert_update_ocsp_task_test.go

20 lines
372 B
Go
Raw Normal View History

2022-03-10 11:54:35 +08:00
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package tasks_test
import (
"github.com/TeaOSLab/EdgeAPI/internal/tasks"
"github.com/iwind/TeaGo/dbs"
"testing"
)
func TestSSLCertUpdateOCSPTask_Loop(t *testing.T) {
dbs.NotifyReady()
var task = tasks.NewSSLCertUpdateOCSPTask()
2022-03-18 17:08:51 +08:00
err := task.Loop(false)
2022-03-10 11:54:35 +08:00
if err != nil {
t.Fatal(err)
}
}