From 3807d93b98573e142858c5871b8b4aadda71d28f Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 1 May 2018 17:17:39 -0700 Subject: [PATCH] Bump up time limit for test_paginate_tables_and_views It was intermittently failing in Travis CI on Python 3.5: https://travis-ci.org/simonw/datasette/jobs/373713476 --- tests/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_api.py b/tests/test_api.py index 08763b0f..81a95c36 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -453,11 +453,11 @@ def test_table_with_reserved_word_name(app_client): ('/test_tables/paginated_view.json?_size=25', 201, 9), ('/test_tables/123_starts_with_digits.json', 0, 1), ]) -def test_paginate_tables_and_views(app_client, path, expected_rows, expected_pages): +def test_paginate_tables_and_views(app_client_longer_time_limit, path, expected_rows, expected_pages): fetched = [] count = 0 while path: - response = app_client.get(path, gather_request=False) + response = app_client_longer_time_limit.get(path, gather_request=False) count += 1 fetched.extend(response.json['rows']) path = response.json['next_url']