mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
python: set reasonable timeouts for account requests
`requests` library does not have a timeout at all by default.
This commit is contained in:
@@ -176,7 +176,7 @@ class TestProcess:
|
||||
try:
|
||||
yield self._configlist[index]
|
||||
except IndexError:
|
||||
res = requests.post(liveconfig_opt)
|
||||
res = requests.post(liveconfig_opt, timeout=60)
|
||||
if res.status_code != 200:
|
||||
pytest.fail("newtmpuser count={} code={}: '{}'".format(index, res.status_code, res.text))
|
||||
d = res.json()
|
||||
|
||||
Reference in New Issue
Block a user