diff options
Diffstat (limited to 'packages/meshbay-hub/tests')
| -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); |