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

pull/28073/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent 5c843d9c12
commit fbcf6ced51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      selfdrive/test/test_onroad.py

@ -161,7 +161,11 @@ class TestOnroad(unittest.TestCase):
for s, msgs in self.service_msgs.items(): for s, msgs in self.service_msgs.items():
if s in ('initData', 'sentinel'): if s in ('initData', 'sentinel'):
continue continue
# skip gps services for now
if s in ('ubloxGnss', 'ubloxRaw', 'gnssMeasurements'):
continue
with self.subTest(service=s): with self.subTest(service=s):
assert len(msgs) >= math.floor(service_list[s].frequency*55) assert len(msgs) >= math.floor(service_list[s].frequency*55)

Loading…
Cancel
Save