Skip to content

Commit 4f341bc

Browse files
authored
Merge pull request #141 from aerickson/patch-1
get(): requests.get() sets timeout
2 parents 66b1166 + 72e1271 commit 4f341bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testdroid/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def get(self, path, payload=None, headers=None):
276276
path = cut_path[1]
277277

278278
(url, headers) = self.__get_request_params(path, headers)
279-
res = requests.get(url, params=payload, headers=headers)
279+
res = requests.get(url, params=payload, headers=headers, timeout=60.0)
280280
if res.status_code not in list(range(200, 300)):
281281
raise RequestResponseError(res.text, res.status_code)
282282
logger.debug(res.text)

0 commit comments

Comments
 (0)