From cc8057c243509a408125cbb253affcb13af54178 Mon Sep 17 00:00:00 2001 From: Justin Newberry Date: Wed, 30 Aug 2023 07:53:03 +0000 Subject: [PATCH] Cleanup --- selfdrive/car/tests/test_fw_fingerprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/tests/test_fw_fingerprint.py b/selfdrive/car/tests/test_fw_fingerprint.py index 7ce79e1804..b899627ad6 100755 --- a/selfdrive/car/tests/test_fw_fingerprint.py +++ b/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