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. 4
      selfdrive/test/test_onroad.py

@ -162,6 +162,10 @@ class TestOnroad(unittest.TestCase):
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)

Loading…
Cancel
Save