mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-30 03:23:52 +08:00
test_onroad: fix service timing threshold
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user