From e780aeddd0ca87815c0bfcadcbf9fca8ff369925 Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Tue, 8 Sep 2026 09:34:18 -0700 Subject: [PATCH] test(rust): drain logging before request assertions --- tests/test_litellm_rust/test_integrations.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_litellm_rust/test_integrations.py b/tests/test_litellm_rust/test_integrations.py index 5501d9e20d2..bb0be4dbd49 100644 --- a/tests/test_litellm_rust/test_integrations.py +++ b/tests/test_litellm_rust/test_integrations.py @@ -128,6 +128,7 @@ async def test_generic_guardrail_logging_only_verdict_is_exported_over_http( response: Final = await route.invoke(provider, callbacks=[guardrail, logger, recorder]) await recorder.wait_for_async("async_log_success_event") + await drain_logging() scan: Final = provider.requests[1] assert scan.path == "/beta/litellm_basic_guardrail_api"