test_onroad: handle spotty gps in testing closet (#28194)

old-commit-hash: fbcf6ced51aa7ca510293799c3e553095cd4577e
This commit is contained in:
Adeeb Shihadeh
2023-05-15 12:45:19 -07:00
committed by GitHub
parent acad6e6324
commit 2bb12fc0fc
+5 -1
View File
@@ -161,7 +161,11 @@ class TestOnroad(unittest.TestCase):
for s, msgs in self.service_msgs.items():
if s in ('initData', 'sentinel'):
continue
# skip gps services for now
if s in ('ubloxGnss', 'ubloxRaw', 'gnssMeasurements'):
continue
with self.subTest(service=s):
assert len(msgs) >= math.floor(service_list[s].frequency*55)