Update test_search_db.py
This commit is contained in:
parent
3971e197c2
commit
2a10ab69ee
1 changed files with 8 additions and 0 deletions
|
|
@ -23,6 +23,14 @@ from collections import Counter
|
||||||
|
|
||||||
logger = get_logger()
|
logger = get_logger()
|
||||||
|
|
||||||
|
# LiteLLM (Python 3.10) can emit a RuntimeWarning at process shutdown:
|
||||||
|
# "coroutine 'close_litellm_async_clients' was never awaited"
|
||||||
|
# This is triggered from LiteLLM's own cleanup code during loop.close() (after tests finish).
|
||||||
|
# CI treats this as a failure in some runs, so we silence *only this* warning for this module.
|
||||||
|
pytestmark = pytest.mark.filterwarnings(
|
||||||
|
"ignore:coroutine 'close_litellm_async_clients' was never awaited:RuntimeWarning"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest_asyncio.fixture(scope="function", autouse=True)
|
@pytest_asyncio.fixture(scope="function", autouse=True)
|
||||||
async def cleanup_resources():
|
async def cleanup_resources():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue