Files
Ydisks-Xianyu-Helper/internal/engine/http_client_test.go
T

15 lines
298 B
Go

package engine
import (
"net/http"
"time"
)
// init 负责init相关处理。
func init() {
// AI 单测通过 httptest 模拟兼容端点;生产构造器仍使用 netguard。
newAIHTTPClient = func(string) (*http.Client, error) {
return &http.Client{Timeout: 30 * time.Second}, nil
}
}