Tests: speedup locationd (#29776)

* speedup locationd

* bump cereal
old-commit-hash: dcea56bcf3
test-msgs
Justin Newberry 2 years ago committed by GitHub
parent 2fd417df74
commit 8062f1636e
  1. 2
      cereal
  2. 2
      selfdrive/locationd/test/test_locationd.py

@ -1 +1 @@
Subproject commit 82bca3a9714b73c05414fdf848b6016a0ffac17d Subproject commit 4291784b4d372782c95279e9fe7741e38633ca5e

@ -80,7 +80,7 @@ class TestLocationdProc(unittest.TestCase):
for msg in sorted(msgs, key=lambda x: x.logMonoTime): for msg in sorted(msgs, key=lambda x: x.logMonoTime):
self.pm.send(msg.which(), msg) self.pm.send(msg.which(), msg)
if msg.which() == "cameraOdometry": if msg.which() == "cameraOdometry":
self.pm.wait_for_readers_to_update(msg.which(), 0.1) self.pm.wait_for_readers_to_update(msg.which(), 0.1, dt=0.005)
time.sleep(1) # wait for async params write time.sleep(1) # wait for async params write
lastGPS = json.loads(self.params.get('LastGPSPosition')) lastGPS = json.loads(self.params.get('LastGPSPosition'))

Loading…
Cancel
Save