File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/service-library/tests/redis Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
354354async 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
You can’t perform that action at this time.
0 commit comments