spider-scheduler/pkg/task/user_test.go

23 lines
366 B
Go
Raw Permalink Normal View History

package task
import (
2023-04-09 13:35:34 +08:00
"github.com/furryboard/spider-scheduler/pkg/conf"
"github.com/furryboard/spider-scheduler/pkg/log"
"testing"
)
func BeforeTesting() {
log.InitLogger(false)
conf.InitConfig("config.toml")
}
func TestUpdateUserInfo(t *testing.T) {
BeforeTesting()
UpdateUserInfo()
}
func TestUpdateFans(t *testing.T) {
BeforeTesting()
UpdateFans()
}