Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
Use realistic sleep in batching tests to simulate concurrent work
Claude4ae74dffbc1d
diff --git a/backend/tests/test_batching.py b/backend/tests/test_batching.pyindex 41d00171..492905e6 100644--- a/backend/tests/test_batching.py+++ b/backend/tests/test_batching.py@@ -21,7 +21,7 @@ async def test_process_tasks_batches_replicate_calls(nonlocal concurrent, max_concurrentconcurrent += 1max_concurrent = max(max_concurrent, concurrent)- await asyncio.sleep(0)+ await asyncio.sleep(0.01)concurrent -= 1return f"url-for-{prompt}"@@ -48,7 +48,7 @@ async def test_remove_background_batches_calls(nonlocal concurrent, max_concurrentconcurrent += 1max_concurrent = max(max_concurrent, concurrent)- await asyncio.sleep(0)+ await asyncio.sleep(0.01)concurrent -= 1return f"nobg-{image_url}"