test(rust): drain logging before request assertions

This commit is contained in:
Yujong Lee 2026-09-08 09:34:18 -07:00
parent dbb1d30647
commit e780aeddd0

View file

@ -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"