test_onroad: fix service timing threshold

This commit is contained in:
Adeeb Shihadeh
2026-07-02 14:41:36 -07:00
parent 4532320fb3
commit 9d03e737dd
+2 -1
View File
@@ -175,8 +175,9 @@ class TestOnroad:
if s in ('ubloxGnss', 'ubloxRaw', 'gnssMeasurements', 'gpsLocation', 'gpsLocationExternal', 'qcomGnss'):
continue
duration = TEST_DURATION - 5.0 # subtract some selfdrived initializing time
with subtests.test(service=s):
assert len(msgs) >= math.floor(SERVICE_LIST[s].frequency*int(TEST_DURATION*0.8))
assert len(msgs) >= math.floor(SERVICE_LIST[s].frequency*int(duration*0.8))
def test_manager_starting_time(self):
st = self.ts['managerState']['t'][0]