Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Pass an AgentIdentity to the Mattermost adapter in the bot-socket test

Petr Bauch56ae9a22f7d1
diff --git a/core/tests/switch_core/bridges/collaboration/test_mattermost_bot_sockets.py b/core/tests/switch_core/bridges/collaboration/test_mattermost_bot_sockets.py
index 8972f15ee..4a31ca194 100644
--- a/core/tests/switch_core/bridges/collaboration/test_mattermost_bot_sockets.py
+++ b/core/tests/switch_core/bridges/collaboration/test_mattermost_bot_sockets.py
@@ -156,7 +156,7 @@ def test_a_closed_socket_leaves_no_task_pending_on_its_loop() -> None:
await adapter.create_agent_identity(_SWITCHDEV)
thread = _socket_thread("switchdev", before)
await _until(lambda: bot.connects == 1)
- await adapter.remove_agent_identity("switchdev")
+ await adapter.remove_agent_identity(_SWITCHDEV)
await asyncio.to_thread(thread.join, 5)
assert not thread.is_alive()