From a50660cc70701a2a09dda077ff0a87aa6c669c0e Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Thu, 12 Jul 2018 00:39:31 +0200 Subject: [PATCH] Test --timeout with longer delay test_timeout_exit_status fails on Python 2.7 https://travis-ci.org/jakubroztocil/httpie/jobs/390072675#L325 --- tests/test_exit_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_exit_status.py b/tests/test_exit_status.py index 7e37f073..119b8d12 100644 --- a/tests/test_exit_status.py +++ b/tests/test_exit_status.py @@ -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