From a65227e490c97a1e97acb9d7b070cfd4cae85c45 Mon Sep 17 00:00:00 2001 From: Mikhail Putilovskij Date: Fri, 24 Apr 2026 13:29:49 +0300 Subject: [PATCH] test: align matrix dispatch chat id contract --- tests/adapter/matrix/test_dispatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/adapter/matrix/test_dispatcher.py b/tests/adapter/matrix/test_dispatcher.py index 7fa7a47..f338495 100644 --- a/tests/adapter/matrix/test_dispatcher.py +++ b/tests/adapter/matrix/test_dispatcher.py @@ -276,7 +276,7 @@ async def test_bot_assigns_platform_chat_id_for_existing_managed_room(): runtime.dispatcher.dispatch.assert_awaited_once() -async def test_bot_routes_plain_messages_via_platform_chat_id(): +async def test_bot_keeps_local_chat_id_for_plain_messages(): runtime = build_runtime(platform=MockPlatformClient()) await set_room_meta( runtime.store, @@ -297,7 +297,7 @@ async def test_bot_routes_plain_messages_via_platform_chat_id(): await bot.on_room_message(room, event) dispatched = runtime.dispatcher.dispatch.await_args.args[0] - assert dispatched.chat_id == "41" + assert dispatched.chat_id == "C1" assert dispatched.text == "hello"