Skip to content

Commit

Permalink
Toyota: fixed regression safety tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiasini committed Jun 3, 2019
1 parent 192fd05 commit 95b0109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/safety/test_toyota.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ def test_torque_measurements(self):
self.assertEqual(51, self.safety.get_toyota_torque_meas_max())

self.safety.toyota_rx_hook(self._torque_meas_msg(0))
self.assertEqual(-1, self.safety.get_toyota_torque_meas_max())
self.assertEqual(1, self.safety.get_toyota_torque_meas_max())
self.assertEqual(-51, self.safety.get_toyota_torque_meas_min())

self.safety.toyota_rx_hook(self._torque_meas_msg(0))
self.assertEqual(-1, self.safety.get_toyota_torque_meas_max())
self.assertEqual(1, self.safety.get_toyota_torque_meas_max())
self.assertEqual(-1, self.safety.get_toyota_torque_meas_min())

def test_ipas_override(self):
Expand Down

0 comments on commit 95b0109

Please sign in to comment.