From bd806bb24b7d779049c3209090b8372b6a74b0ef Mon Sep 17 00:00:00 2001 From: debugtalk Date: Wed, 22 Jun 2022 15:03:35 +0800 Subject: [PATCH] change: set http request timeout to 120s --- docs/CHANGELOG.md | 6 ++++++ hrp/runner.go | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 398edc84..82caabba 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## v4.1.5 (2022-06-22) + +**go version** + +- change: set http request timeout to 120s + ## v4.1.4 (2022-06-17) **go version** diff --git a/hrp/runner.go b/hrp/runner.go index 46eb2af8..cd1675fa 100644 --- a/hrp/runner.go +++ b/hrp/runner.go @@ -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{