mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-27 11:10:31 +08:00
set request timeout default to 120 seconds
This commit is contained in:
@@ -114,6 +114,8 @@ class HttpSession(requests.Session):
|
|||||||
kwargs["auth"] = HttpNtlmAuth(
|
kwargs["auth"] = HttpNtlmAuth(
|
||||||
auth_account["username"], auth_account["password"])
|
auth_account["username"], auth_account["password"])
|
||||||
|
|
||||||
|
kwargs.setdefault("timeout", 120)
|
||||||
|
|
||||||
response = self._send_request_safe_mode(method, url, **kwargs)
|
response = self._send_request_safe_mode(method, url, **kwargs)
|
||||||
request_meta["url"] = (response.history and response.history[0] or response)\
|
request_meta["url"] = (response.history and response.history[0] or response)\
|
||||||
.request.path_url
|
.request.path_url
|
||||||
|
|||||||
Reference in New Issue
Block a user