Skip to content

Commit 5f0f5e2

Browse files
authored
chore: fix flaky test test_add_requests_wait_for_all (#1503)
### Description - fix flaky test `test_add_requests_wait_for_all` ### Issues - Closes: #1498
1 parent 2d6728e commit 5f0f5e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/storages/test_request_queue.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,15 +445,15 @@ async def test_add_requests_wait_for_all(
445445
urls,
446446
batch_size=5,
447447
wait_for_all_requests_to_be_added=wait_for_all,
448-
wait_time_between_batches=timedelta(milliseconds=100),
448+
wait_time_between_batches=timedelta(milliseconds=50),
449449
)
450450

451451
if not wait_for_all:
452452
# Immediately after adding, the total count may be less than 15 due to background processing
453453
assert await rq.get_total_count() <= 15
454454

455-
# Wait a 250 milliseconds for background tasks to complete
456-
await asyncio.sleep(0.25)
455+
# Wait a 500 milliseconds for background tasks to complete
456+
await asyncio.sleep(0.5)
457457

458458
# Verify all requests were added
459459
assert await rq.get_total_count() == 15

0 commit comments

Comments
 (0)