From 9a32f2ae0074c4c77727aef1a5fe799f61f07a7f Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 30 Oct 2026 11:02:41 +0100 Subject: test(hub): the chat and index probes declare a session Since 2167b7c a request needs _sessionUp; both stand-in transports set _connected only, so every request failed as a lost connection. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/tests/harness/chat_send_probe.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'packages/meshbay-hub/tests/harness/chat_send_probe.py') diff --git a/packages/meshbay-hub/tests/harness/chat_send_probe.py b/packages/meshbay-hub/tests/harness/chat_send_probe.py index e7f1dae7..2a31b748 100644 --- a/packages/meshbay-hub/tests/harness/chat_send_probe.py +++ b/packages/meshbay-hub/tests/harness/chat_send_probe.py @@ -164,6 +164,7 @@ function makeTransport(name, chatReply) { // one. const tp = new window.MeshBayTransport('', 'token'); tp._connected = true; + tp._sessionUp = true; // a handshake done; requests are refused without one tp._channel = { readyState: 'open', send() {} }; // What a completed MNP 2.0 handshake leaves behind: the group and its key // from `connect`, the current epoch from the sealed ack, and the device this @@ -331,6 +332,7 @@ async function runScenario(name, chatReply, duringSession) { await wait(100); tp._channel = { readyState: 'open', send() {} }; tp._connected = true; + tp._sessionUp = true; await wait(50); snap('device identity cleared'); // A live message arrives — the ordinary thing that re-renders this -- cgit v1.2.3