From 87b1a8bd1598d299a9cc18a9c06cbd1e79396116 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sat, 19 Dec 2020 16:13:29 -0800 Subject: [PATCH] increase athena test timeout old-commit-hash: 63cdf2a70cdcb9f5107de9e2fa4a5b0640b0ccc2 --- selfdrive/athena/test_helpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/selfdrive/athena/test_helpers.py b/selfdrive/athena/test_helpers.py index 77a94c0787..b30ff4b3af 100644 --- a/selfdrive/athena/test_helpers.py +++ b/selfdrive/athena/test_helpers.py @@ -101,11 +101,12 @@ def with_http_server(func): 'HandlerClass': HTTPRequestHandler, 'bind': host}) p.start() - now = time.time() + start = time.monotonic() port = None while 1: - if time.time() - now > 5: + if time.monotonic() - start > 10: raise Exception('HTTP Server did not start') + try: port = port_queue.get(timeout=0.1) requests.put(f'http://{host}:{port}/qlog.bz2', data='')