From 08eda0553751dad0697f8bc39cf9f87e4b9fa0c5 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 21 Feb 2024 20:17:18 -0800 Subject: [PATCH] these pass in 0.5s since server sends ping on connect --- selfdrive/athena/tests/test_athenad_ping.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selfdrive/athena/tests/test_athenad_ping.py b/selfdrive/athena/tests/test_athenad_ping.py index 49bd5f1142..6eaa983086 100755 --- a/selfdrive/athena/tests/test_athenad_ping.py +++ b/selfdrive/athena/tests/test_athenad_ping.py @@ -63,8 +63,8 @@ class TestAthenadPing(unittest.TestCase): mock_create_connection.assert_called_once() mock_create_connection.reset_mock() - # check normal behaviour - with self.subTest("Wi-Fi: receives ping"), Timeout(70, "no ping received"): + # check normal behaviour, server pings on connection + with self.subTest("Wi-Fi: receives ping"), Timeout(5, "no ping received"): while not self._received_ping(): time.sleep(0.1) print("ping received") @@ -84,7 +84,7 @@ class TestAthenadPing(unittest.TestCase): self._clear_ping_time() # check ping received after reconnect - with self.subTest("LTE: receives ping"), Timeout(70, "no ping received"): + with self.subTest("LTE: receives ping"), Timeout(5, "no ping received"): while not self._received_ping(): time.sleep(0.1) print("ping received")