yao/task/task_test.go
2023-02-01 17:25:11 +08:00

18 lines
266 B
Go

package task
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/yaoapp/gou/task"
"github.com/yaoapp/yao/config"
)
func TestLoad(t *testing.T) {
Load(config.Conf)
check(t)
}
func check(t *testing.T) {
assert.Equal(t, 1, len(task.Tasks))
}