Test --timeout with longer delay

test_timeout_exit_status fails on Python 2.7
https://travis-ci.org/jakubroztocil/httpie/jobs/390072675#L325
This commit is contained in:
Jakub Roztocil 2018-07-12 00:39:31 +02:00
parent 749b1e2aca
commit a50660cc70

View File

@ -33,7 +33,7 @@ def test_error_response_exits_0_without_check_status(httpbin):
def test_timeout_exit_status(httpbin):
r = http('--timeout=0.01', 'GET', httpbin.url + '/delay/0.02',
r = http('--timeout=0.01', 'GET', httpbin.url + '/delay/0.5',
error_exit_ok=True)
assert r.exit_status == ExitStatus.ERROR_TIMEOUT