diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-30 11:02:41 +0100 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-30 11:02:41 +0100 |
| commit | 9a32f2ae0074c4c77727aef1a5fe799f61f07a7f (patch) | |
| tree | f0e2be74780240af3f66999007f42dd9ec38d041 /packages | |
| parent | 3ba0f3755010bbd937a7ec0d088c8a9a1fd5852d (diff) | |
| download | meshbay-main.tar.gz | |
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 <noreply@anthropic.com>
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/meshbay-hub/tests/harness/chat_send_probe.py | 2 | ||||
| -rw-r--r-- | packages/meshbay-hub/tests/harness/index_seal_probe.mjs | 1 |
2 files changed, 3 insertions, 0 deletions
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 diff --git a/packages/meshbay-hub/tests/harness/index_seal_probe.mjs b/packages/meshbay-hub/tests/harness/index_seal_probe.mjs index 2493a055..7484f1ed 100644 --- a/packages/meshbay-hub/tests/harness/index_seal_probe.mjs +++ b/packages/meshbay-hub/tests/harness/index_seal_probe.mjs @@ -52,6 +52,7 @@ const hex = (s) => Uint8Array.from(s.match(/../g).map((b) => parseInt(b, 16))); const events = []; 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() {}, close() {} }; tp._pc = { close() {} }; tp._gekRaw = hex(input.gek); |