From 2f3942bb118bae68ccf9f79e8d1d8e1de3a7df7b Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 13 Aug 2020 15:10:00 -0700 Subject: [PATCH] increase CPU test timeout to allow for installing new APKs old-commit-hash: 5641aeee7ae896e2ee4e24f68e24d47e497031ea --- selfdrive/test/test_cpu_usage.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/selfdrive/test/test_cpu_usage.py b/selfdrive/test/test_cpu_usage.py index 2f260ec8a3..16f205e824 100755 --- a/selfdrive/test/test_cpu_usage.py +++ b/selfdrive/test/test_cpu_usage.py @@ -71,12 +71,15 @@ def test_cpu_usage(): try: proc_sock = messaging.sub_sock('procLog', conflate=True, timeout=2000) - # wait until everything's started and get first sample + # wait until everything's started start_time = time.monotonic() - while time.monotonic() - start_time < 120: + while time.monotonic() - start_time < 210: if Params().get("CarParams") is not None: break time.sleep(2) + + # take first sample + time.sleep(5) first_proc = messaging.recv_sock(proc_sock, wait=True) if first_proc is None: raise Exception("\n\nTEST FAILED: progLog recv timed out\n\n")