lower timeout and increase payload size on brotli timeout test

it keeps failing because travis' machines are too fast lol
This commit is contained in:
codl 2017-09-24 12:54:45 +02:00
parent 79e06784af
commit 4f3c877d0c
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 2 additions and 2 deletions

View File

@ -92,11 +92,11 @@ def test_brotli_dynamic_cache(br_client):
def test_brotli_dynamic_timeout(app): def test_brotli_dynamic_timeout(app):
from secrets import token_urlsafe from secrets import token_urlsafe
libforget.brotli.brotli(app, timeout=0.01) libforget.brotli.brotli(app, timeout=0.001)
@app.route('/hard_to_compress') @app.route('/hard_to_compress')
def hard_to_compress(): def hard_to_compress():
return token_urlsafe(2**14) return token_urlsafe(2**16)
client = app.test_client() client = app.test_client()