Skip to content

Commit 1cb554e

Browse files
committed
test: make attempt-count comment more concise
1 parent af8be8c commit 1cb554e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/integration/_utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ async def drain() -> list[_HasIdT]:
200200
collected.append(item)
201201
return collected
202202

203-
# Loop on attempt count rather than `poll_until_condition`'s wall-clock deadline: each drain performs
204-
# paginated HTTP calls, and charging that time against a deadline would shrink the number of retries
205-
# under load — exactly when the eventual-consistency tolerance is needed most.
203+
# Loop on attempt count rather than a wall-clock deadline: drains take HTTP time, and charging it
204+
# against a deadline would mean fewer retries under load — exactly when they are needed most.
206205
collected = await drain()
207206
for _ in range(max_attempts - 1):
208207
if expected_ids.issubset(item.id for item in collected):

0 commit comments

Comments
 (0)