summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_search_fanout.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-10-17 19:08:52 +0200
committerChristophe Besson <cbesson@gmail.com>2026-10-17 19:08:52 +0200
commit84946b1fef64ee619f1c161d57ef4afdc533eae2 (patch)
tree55d13c6536b5cc2bdb8754eb0d82b6339f01072b /packages/meshbay-hub/tests/test_search_fanout.py
parent7e01b7e8c2ce2ef9fce8b6c053c3b7210b64f9bf (diff)
downloadmeshbay-84946b1fef64ee619f1c161d57ef4afdc533eae2.tar.gz
fix(spa): search hears a refused local network from the connection
On a Pixel, Chrome still lists the refused address when search gives up, so nothing tells it from a silent node. The connection given up on now runs to its own verdict and the refusal is reported then. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/tests/test_search_fanout.py')
-rw-r--r--packages/meshbay-hub/tests/test_search_fanout.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/meshbay-hub/tests/test_search_fanout.py b/packages/meshbay-hub/tests/test_search_fanout.py
index 73ba4ac0..303045cd 100644
--- a/packages/meshbay-hub/tests/test_search_fanout.py
+++ b/packages/meshbay-hub/tests/test_search_fanout.py
@@ -189,3 +189,8 @@ def test_the_search_page_shows_the_refused_groups_with_a_way_in():
start = source.index("lanBlocked.length > 0")
hint = source[start:start + 400]
assert "t('search.lan_blocked'" in hint and "groupLinkRoute(g)" in hint
+ # The refusals heard after the pass, from the pool, join the same list.
+ pool = source[source.index("new ConnectionPool(HUB,"):]
+ pool = pool[:pool.index("return () =>")]
+ assert "addLanBlocked([g])" in pool
+ assert "addLanBlocked(refused)" in source and "setLanBlocked(refused)" not in source