change: set http request timeout to 120s

This commit is contained in:
debugtalk
2022-06-22 15:03:35 +08:00
parent b12aa90f79
commit 583c11afbc
2 changed files with 8 additions and 2 deletions

View File

@@ -37,13 +37,13 @@ func NewRunner(t *testing.T) *HRPRunner {
Transport: &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
Timeout: 30 * time.Second,
Timeout: 120 * time.Second,
},
http2Client: &http.Client{
Transport: &http2.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
Timeout: 30 * time.Second,
Timeout: 120 * time.Second,
},
// use default handshake timeout (no timeout limit) here, enable timeout at step level
wsDialer: &websocket.Dialer{