Default tests to using a longer timelimit

Every now and then a test will fail in Travis CI on Python 3.5 because it hit
the default 20ms SQL time limit.

Test fixtures now default to a 200ms time limit, and we only use the 20ms time
limit for the specific test that tests query interruption. This should make
our tests on Python 3.5 in Travis much more stable.
This commit is contained in:
Simon Willison 2018-05-05 19:41:37 -03:00
commit 801381b765
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
2 changed files with 11 additions and 11 deletions

View file

@ -22,7 +22,7 @@ def app_client(sql_time_limit_ms=None, max_returned_rows=None):
[filepath],
page_size=50,
max_returned_rows=max_returned_rows or 100,
sql_time_limit_ms=sql_time_limit_ms or 20,
sql_time_limit_ms=sql_time_limit_ms or 200,
metadata=METADATA,
plugins_dir=plugins_dir,
)
@ -34,8 +34,8 @@ def app_client(sql_time_limit_ms=None, max_returned_rows=None):
yield client
def app_client_longer_time_limit():
yield from app_client(200)
def app_client_shorter_time_limit():
yield from app_client(20)
def app_client_returend_rows_matches_page_size():