From 7e01b7e8c2ce2ef9fce8b6c053c3b7210b64f9bf Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Sat, 17 Oct 2026 18:51:35 +0200 Subject: fix(spa): search names the groups refused the local network Search gives up before ICE does, so the refusal is read from the connection then; the walk moves on to the group's other nodes, and the page lists the refused groups with a link to each. Co-Authored-By: Claude Opus 5.5 --- packages/meshbay-hub/tests/harness/local_network_harness.mjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'packages/meshbay-hub/tests/harness/local_network_harness.mjs') diff --git a/packages/meshbay-hub/tests/harness/local_network_harness.mjs b/packages/meshbay-hub/tests/harness/local_network_harness.mjs index 9afdf59e..3c86cf77 100644 --- a/packages/meshbay-hub/tests/harness/local_network_harness.mjs +++ b/packages/meshbay-hub/tests/harness/local_network_harness.mjs @@ -151,6 +151,13 @@ if (cfg.classify) { undefined, undefined, '', 'pk') .then(() => { outcome = 'connected'; }, (err) => { outcome = err.message; reason = err.reason || null; main.close(); }); + // What a caller that stops waiting early reads (connection-pool.js): at + // `probeAt` ms, while ICE is still checking, or after it connected. + let early = null; + if (cfg.probeAt) { + await run(cfg.probeAt); + early = await main.localNetworkRefused(); + } await run(60000); - process.stdout.write(JSON.stringify({ outcome, reason, statsCalls })); + process.stdout.write(JSON.stringify({ outcome, reason, statsCalls, early })); } -- cgit v1.2.3