Skip to content

Commit 5791474

Browse files
alan-gauthier-jtntkathole
authored andcommitted
test: Run MCP audit handler coroutines with asyncio.run
Signed-off-by: Alan Gauthier <alan.gauthier@jobteaser.com>
1 parent a87c070 commit 5791474

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sdk/python/tests/unit/audit/test_mcp_audit_handler.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def emit(self, event: AuditEvent) -> None:
3636

3737
def _run(coro):
3838
"""Helper to run an async function synchronously in tests."""
39-
return asyncio.get_event_loop().run_until_complete(coro)
39+
return asyncio.run(coro)
4040

4141

4242
def _make_real_mcp(app: FastAPI | None = None):

0 commit comments

Comments
 (0)