diff --git a/nanobot/channels/websocket/tests/test_websocket_http_routes.py b/nanobot/channels/websocket/tests/test_websocket_http_routes.py index 8d11b403a..617ce977b 100644 --- a/nanobot/channels/websocket/tests/test_websocket_http_routes.py +++ b/nanobot/channels/websocket/tests/test_websocket_http_routes.py @@ -2391,6 +2391,7 @@ async def test_session_delete_removes_unpersisted_new_chat( channel = _ch(bus, session_manager=sm, workspace_path=tmp_path, port=_free_port()) connection = AsyncMock() connection.remote_address = ("127.0.0.1", 50123) + connection.request.headers = {"Host": "localhost"} await channel._dispatch_envelope( connection,