23 lines
366 B
Go
23 lines
366 B
Go
package task
|
|
|
|
import (
|
|
"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()
|
|
}
|