pull/29712/head
Justin Newberry 2 years ago
parent 6d0d4e9c92
commit cc8057c243
  1. 4
      selfdrive/car/tests/test_fw_fingerprint.py

@ -190,7 +190,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
if not params.get_bool("ObdMultiplexingChanged"):
params.put_bool("ObdMultiplexingChanged", True)
return time.perf_counter() - t
def fake_get_data(self, timeout):
self.fake_timeout_time += timeout
return {}
@ -206,7 +206,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
thread = threading.Thread(target=get_fw_versions, args=(fake_socket, fake_socket, brand),
kwargs=dict(num_pandas=num_pandas))
brand_time += self._run_thread(thread) + self.fake_timeout_time
query_patch.stop()
return brand_time / self.N

Loading…
Cancel
Save