aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/harness/window_leak.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/harness/window_leak.mjs')
-rw-r--r--packages/meshbay-hub/tests/harness/window_leak.mjs4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/meshbay-hub/tests/harness/window_leak.mjs b/packages/meshbay-hub/tests/harness/window_leak.mjs
index ae6d46e..d5185de 100644
--- a/packages/meshbay-hub/tests/harness/window_leak.mjs
+++ b/packages/meshbay-hub/tests/harness/window_leak.mjs
@@ -43,6 +43,8 @@ const flushQueue = () => {};
const gekRef = { current: null };
const window_ = { MeshBayCrypto: { decryptChunkBin: async () => new Uint8Array(4) } };
+const silentConsole = { log() {}, warn() {}, error() {} };
+
const handler = new Function(
'msg', 'cancelled', 'awaitingInitRef', 'outstandingRef', 'queueRef',
'entry', 'gekRef', 'pump', 'flushQueue', 'console', 'window',
@@ -52,7 +54,7 @@ const deliver = (n) => Promise.all(
Array.from({ length: n }, (_, i) => handler(
{ file_id: entry.id, segment_index: i, nonce: 'n', ct: 'c' },
cancelled, awaitingInitRef, outstandingRef, queueRef, entry, gekRef,
- pump, flushQueue, console, window_)));
+ pump, flushQueue, silentConsole, window_)));
const run = async () => {
// The whole window arrives while reinitAt is still awaiting its updateends.