mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix: use AsyncMock for concurrent test consistency
Address review feedback from greptile — use new_callable=AsyncMock on the concurrent test's patch.object to ensure the mock is properly typed as async, even though side_effect already handles the coroutine.
This commit is contained in:
parent
ca8f5cffa0
commit
88f59e1465
1 changed files with 1 additions and 0 deletions
|
|
@ -167,6 +167,7 @@ async def test_add_shared_session_concurrent_recreation_uses_lock():
|
|||
with patch.object(
|
||||
proxy_server_module,
|
||||
"_initialize_shared_aiohttp_session",
|
||||
new_callable=AsyncMock,
|
||||
side_effect=mock_init,
|
||||
):
|
||||
# Launch 5 concurrent calls
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue