From b32fc5ec98c2984524f3ee15fd47aec6d4ee6f20 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Tue, 24 Nov 2026 15:33:39 -0600 Subject: [PATCH] Verify Galaxy Bluetooth and Uniden preview behavior --- .../galaxy/tests/test_bluetooth_notices.mjs | 21 +++++++++++++------ .../galaxy/tests/test_preview_contract.py | 4 ++-- prebuilt.json | 2 +- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs b/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs index b954e23528..c5a8454347 100644 --- a/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs +++ b/openpilot/starpilot/galaxy/tests/test_bluetooth_notices.mjs @@ -1,6 +1,7 @@ import assert from 'node:assert/strict' import { createRenderer, nextTick } from '../web/vendor/vue/vue.esm-browser.js' import { BluetoothNotice, bluetoothConnection } from '../web/js/bluetooth-notice.js' +import { BluetoothPage } from '../web/js/bluetooth.js' import { LocalHistoryFeed, LocalRecordingsPage } from '../web/js/record-history.js' import { CamerasPage, CameraSnapshotFeed, LiveCameraPreview } from '../web/js/cameras.js' import { PipPage } from '../web/js/pip.js' @@ -108,11 +109,19 @@ assert.equal(requests, 0) window.StarPilotApp.bluetooth = () => false assert.equal(bluetoothConnection(), false) -{ - const { readFileSync } = await import('node:fs') - const lines = readFileSync(new URL('../web/js/bluetooth.js', import.meta.url), 'utf8').split('\n') - const chained = lines.findIndex((line) => line.trim() === '