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

old-commit-hash: fbcf6ced51
beeps
Adeeb Shihadeh 2 years ago committed by GitHub
parent acad6e6324
commit 2bb12fc0fc
  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