diff options
Diffstat (limited to 'packages/meshbay-hub/tests/test_android_shell.py')
| -rw-r--r-- | packages/meshbay-hub/tests/test_android_shell.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/meshbay-hub/tests/test_android_shell.py b/packages/meshbay-hub/tests/test_android_shell.py index 53b3914..ef7355d 100644 --- a/packages/meshbay-hub/tests/test_android_shell.py +++ b/packages/meshbay-hub/tests/test_android_shell.py @@ -133,8 +133,9 @@ def _shim_channels() -> set[str]: def test_the_shim_offers_desktop_channels_and_native_answers_each(): preload_js = _read(CLIENT / "src" / "preload.js") preload = set(re.findall(r"ipcRenderer\.invoke\('([\w:-]+)'", preload_js)) - channels_kt = _read(SRC / "bridge" / "Channels.kt") - native = set(re.findall(r'^\s*"([\w:-]+)" ->', channels_kt, flags=re.M)) + native = set() + for name in ("Channels.kt", "KeyChannels.kt"): + native |= set(re.findall(r'^\s*"([\w:-]+)" ->', _read(SRC / "bridge" / name), flags=re.M)) shim = _shim_channels() assert shim, "no channel found in the shim" assert shim <= preload, f"channels the desktop does not have: {shim - preload}" |