Skip to content

Commit f24ff9b

Browse files
committed
Update tests with specific concurrency
1 parent 5c40ed5 commit f24ff9b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/integration/test_actor_lifecycle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async def main() -> None:
131131
from apify import Actor
132132

133133
async with Actor:
134-
crawler = BasicCrawler(concurrency_settings=ConcurrencySettings(max_concurrency=1))
134+
crawler = BasicCrawler(concurrency_settings=ConcurrencySettings(max_concurrency=1, desired_concurrency=1))
135135
requests = ['https://example.com/1', 'https://example.com/2']
136136

137137
run = await Actor.apify_client.run(Actor.configuration.actor_run_id or '').get()

tests/integration/test_crawlers_with_storages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ async def main() -> None:
5656

5757
async with Actor:
5858
crawler = ParselCrawler(
59-
max_requests_per_crawl=3, concurrency_settings=ConcurrencySettings(max_concurrency=1)
59+
max_requests_per_crawl=3,
60+
concurrency_settings=ConcurrencySettings(max_concurrency=1, desired_concurrency=1),
6061
)
6162
finished = []
6263

0 commit comments

Comments
 (0)