Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BT-4723: Query limits tests are failing due to uncaught ThrottlingError #158

Merged
merged 2 commits into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions concourse/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
params:
QUERY_LIMITS_DB: limited
QUERY_LIMITS_COLL: limitCollection
QUERY_LIMITS_PAGE_SIZE: 10


- name: release
Expand Down
1 change: 1 addition & 0 deletions concourse/tasks/query-limits-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ params:
FAUNA_ENDPOINT: http://fauna-limits:8443
QUERY_LIMITS_DB:
QUERY_LIMITS_COLL:
QUERY_LIMITS_PAGE_SIZE:

inputs:
- name: fauna-python-repository
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/test_client_with_query_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

def query_collection(client: Client) -> QuerySuccess:
coll_name = os.environ.get("QUERY_LIMITS_COLL") or ""
return client.query(fql("${coll}.all().paginate(50)", coll=fql(coll_name)))
page_size = os.environ.get("QUERY_LIMITS_PAGE_SIZE") or "10"
return client.query(fql("${coll}.all().paginate(${page})", coll=fql(coll_name), page=int(page_size)))


@pytest.mark.skipif(
Expand Down
Loading