increase the timeout for test that fails

This commit is contained in:
Raphael Deem 2017-07-27 16:25:14 -07:00
parent 8118e542fb
commit 928079e140

View File

@ -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']) @pytest.mark.parametrize('file_name', ['test.file', 'decode me.txt', 'python.png'])
def test_file_stream_response(file_name, static_file_directory): def test_file_stream_response(file_name, static_file_directory):
app = Sanic('test_file_helper') app = Sanic('test_file_helper')
app.config.REQUEST_TIMEOUT = 120
@app.route('/files/<filename>', methods=['GET']) @app.route('/files/<filename>', methods=['GET'])
def file_route(request, filename): def file_route(request, filename):
file_path = os.path.join(static_file_directory, 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 'Content-Length' in response.headers
assert int(response.headers[ assert int(response.headers[
'Content-Length']) == len( 'Content-Length']) == len(
get_file_content(static_file_directory, file_name)) get_file_content(static_file_directory, file_name))