From e25786ed8e4f54cde1fa3f3708d5db9b17d9cd00 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 9 Sep 2024 17:01:20 -0700 Subject: [PATCH] fix test otel message logging off --- litellm/tests/test_async_opentelemetry.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/tests/test_async_opentelemetry.py b/litellm/tests/test_async_opentelemetry.py index 1fac0bb67..55b60b302 100644 --- a/litellm/tests/test_async_opentelemetry.py +++ b/litellm/tests/test_async_opentelemetry.py @@ -42,6 +42,8 @@ async def test_otel_with_message_logging_off(): ) print("response", response) + await asyncio.sleep(4) + assert otel_logger.kwargs["messages"] == [ {"role": "user", "content": "redacted-by-litellm"} ]