Skip to content

Commit 6173a9f

Browse files
committed
cleaning
1 parent c7784c6 commit 6173a9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/service-library/tests/redis/test_semaphore_decorator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ async def function_raising_cancelled_error():
350350
await function_raising_cancelled_error()
351351

352352

353-
@pytest.mark.skip
353+
# @pytest.mark.skip
354354
async def test_with_large_capacity(
355355
redis_client_sdk: RedisClientSDK,
356356
semaphore_name: str,
@@ -368,7 +368,7 @@ async def test_with_large_capacity(
368368
blocking=True,
369369
blocking_timeout=None,
370370
)
371-
async def limited_function():
371+
async def limited_function() -> None:
372372
nonlocal concurrent_count, max_concurrent
373373
concurrent_count += 1
374374
max_concurrent = max(max_concurrent, concurrent_count)
@@ -377,7 +377,7 @@ async def limited_function():
377377

378378
# Start tasks equal to the large capacity
379379
tasks = [asyncio.create_task(limited_function()) for _ in range(num_tasks)]
380-
async with asyncio.timeout(num_tasks / large_capacity * 2 * sleep_time_s):
380+
async with asyncio.timeout(num_tasks / large_capacity * 5 * sleep_time_s):
381381
await asyncio.gather(*tasks)
382382

383383
# Should never exceed the large capacity

0 commit comments

Comments
 (0)