refactor: StubBrowserDriver

This commit is contained in:
lilong.129
2025-03-04 11:08:44 +08:00
parent fe97303f90
commit b195760ed9
7 changed files with 54 additions and 90 deletions

View File

@@ -62,7 +62,7 @@ func CreateBrowser(timeout int) (browserInfo *BrowserInfo, err error) {
}
client := &http.Client{
Timeout: 30 * time.Second, // 设置超时时间为5秒
Timeout: 30 * time.Second,
}
resp, err := client.Do(req)
if err != nil {