From 928079e140dbbf539c9f6118da11fe92e6472db9 Mon Sep 17 00:00:00 2001 From: Raphael Deem Date: Thu, 27 Jul 2017 16:25:14 -0700 Subject: [PATCH] increase the timeout for test that fails --- tests/test_response.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_response.py b/tests/test_response.py index fb213b56..661ec673 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -181,6 +181,7 @@ def test_file_head_response(file_name, static_file_directory): @pytest.mark.parametrize('file_name', ['test.file', 'decode me.txt', 'python.png']) def test_file_stream_response(file_name, static_file_directory): app = Sanic('test_file_helper') + app.config.REQUEST_TIMEOUT = 120 @app.route('/files/', methods=['GET']) def file_route(request, filename): file_path = os.path.join(static_file_directory, filename) @@ -224,4 +225,4 @@ def test_file_stream_head_response(file_name, static_file_directory): assert 'Content-Length' in response.headers assert int(response.headers[ 'Content-Length']) == len( - get_file_content(static_file_directory, file_name)) \ No newline at end of file + get_file_content(static_file_directory, file_name))