Fix athenad reconnect test (#31538)

* debugging

* this also works

* so does this

* more similar to existing method

* clean up

* more

* more
old-commit-hash: 9dde727974
chrysler-long2
Shane Smiskol 1 year ago committed by GitHub
parent b347145c9f
commit 2ef89886d3
  1. 2
      selfdrive/athena/tests/test_athenad_ping.py

@ -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()

Loading…
Cancel
Save