Skip to content

Commit f7e64c7

Browse files
committed
test: make pagination flakiness comment more concise
1 parent 120eb1f commit f7e64c7

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎tests/integration/test_webhook_dispatch.py‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ async def test_webhook_dispatch_collection_iterate(client: ApifyClient | ApifyCl
6161

6262
async def test_webhook_dispatch_list_pagination(client: ApifyClient | ApifyClientAsync) -> None:
6363
"""Test webhook_dispatches().list() with pagination parameters."""
64-
# `desc=False` (oldest first) keeps the offset window stable against concurrent inserts:
65-
# parallel xdist workers fire webhooks throughout the suite, so with `desc=True` the head
66-
# of the list shifts down between the two `list()` calls and the offset=5 page can return
67-
# the same item as offset=0. Listing oldest-first anchors offsets to historical dispatches
68-
# that don't move.
64+
# `desc=False` (oldest first) keeps the offset window stable: parallel xdist workers fire
65+
# webhooks throughout the suite, so with `desc=True` the list head shifts between the two
66+
# `list()` calls and offset=5 can return the same item as offset=0.
6967
page = await maybe_await(client.webhook_dispatches().list(limit=5, offset=0, desc=False))
7068
assert isinstance(page, ListOfWebhookDispatches)
7169
assert isinstance(page.items, list)

0 commit comments

Comments
 (0)