diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-19 21:47:34 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-19 21:47:34 +0200 |
| commit | 89358ec1e8323d2ce11b4e10e84d0389e806b8dc (patch) | |
| tree | d7a90e91f7c513a73be5a213325e50c506395cc7 /packages/meshbay-hub | |
| parent | 5e1121fe4f7c2f512d80e71b0fa267bf907c50a1 (diff) | |
| download | meshbay-89358ec1e8323d2ce11b4e10e84d0389e806b8dc.tar.gz | |
Android 17 lists the phone's own hotspot as a Wi-Fi network; taken first,
the television was handed an address it cannot reach.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub')
| -rw-r--r-- | packages/meshbay-hub/tests/test_android_cast.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/meshbay-hub/tests/test_android_cast.py b/packages/meshbay-hub/tests/test_android_cast.py index 82b36d61..da8b912b 100644 --- a/packages/meshbay-hub/tests/test_android_cast.py +++ b/packages/meshbay-hub/tests/test_android_cast.py @@ -93,6 +93,15 @@ def test_the_relay_is_on_wifi_never_the_mobile_network(): assert "TRANSPORT_CELLULAR" not in lan +def test_the_relay_prefers_the_wifi_the_phone_is_on(): + """Android 17 lists the phone's own hotspot as a Wi-Fi network; taken first, + the television was handed an address on a network it is not on.""" + channels = _read(CAST / "CastChannels.kt") + lan = channels.split("private fun lanAddress()", 1)[1] + assert "activeNetwork" in lan and "NET_CAPABILITY_INTERNET" in lan + assert "return pickLan(found)" in lan + + def test_the_receiver_is_pointed_at_the_relay_and_nothing_else(): channels = _read(CAST / "CastChannels.kt") check = channels.split("private fun relayUrl(", 1)[1].split("\n }", 1)[0] |