diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-17 19:08:52 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-17 19:08:52 +0200 |
| commit | 84946b1fef64ee619f1c161d57ef4afdc533eae2 (patch) | |
| tree | 55d13c6536b5cc2bdb8754eb0d82b6339f01072b /packages/meshbay-hub/tests/test_local_network_refused.py | |
| parent | 7e01b7e8c2ce2ef9fce8b6c053c3b7210b64f9bf (diff) | |
| download | meshbay-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_local_network_refused.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_local_network_refused.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/packages/meshbay-hub/tests/test_local_network_refused.py b/packages/meshbay-hub/tests/test_local_network_refused.py index 4f556474..3d0f3041 100644 --- a/packages/meshbay-hub/tests/test_local_network_refused.py +++ b/packages/meshbay-hub/tests/test_local_network_refused.py @@ -104,17 +104,3 @@ def test_stats_that_cannot_be_read_leave_the_old_error(): out = _run({"offer": PHONE_WIFI, "answer": NODE, "remote": KEPT_WHEN_REFUSED, "statsThrow": True}) assert out["reason"] is None and out["outcome"] == "DataChannel closed", out - - -def test_the_refusal_is_read_before_ice_gives_up(): - """Search stops waiting after ten seconds without progress, and ICE gives up - later: the signature is in the pairs as soon as checks begin.""" - refused = _run({"offer": PHONE_WIFI, "answer": NODE, "remote": KEPT_WHEN_REFUSED, - "probeAt": 5000}) - assert refused["early"] is True, refused - paired = _run({"offer": PHONE_WIFI, "answer": NODE, "remote": EVERY_NODE_ADDRESS, - "probeAt": 5000}) - assert paired["early"] is False, paired - reached = _run({"offer": PHONE_WIFI, "answer": NODE, "remote": KEPT_WHEN_REFUSED, - "iceConnects": True, "probeAt": 5000}) - assert reached["early"] is False, reached |