mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-09 06:52:05 +08:00
Fix athenad reconnect test (#31538)
* debugging * this also works * so does this * more similar to existing method * clean up * more * more
This commit is contained in:
@@ -55,7 +55,7 @@ class TestAthenadPing(unittest.TestCase):
|
||||
self.exit_event.set()
|
||||
self.athenad.join()
|
||||
|
||||
@mock.patch('openpilot.selfdrive.athena.athenad.create_connection', autospec=True)
|
||||
@mock.patch('openpilot.selfdrive.athena.athenad.create_connection', new_callable=lambda: mock.MagicMock(wraps=athenad.create_connection))
|
||||
def assertTimeout(self, reconnect_time: float, mock_create_connection: mock.MagicMock) -> None:
|
||||
self.athenad.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user