Skip to content

Commit

Permalink
Toyota: remove redundant test (#1093)
Browse files Browse the repository at this point in the history
already test this
  • Loading branch information
sshane authored Oct 11, 2022
1 parent ca11326 commit aaa70b1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tests/safety/test_toyota.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,22 +139,6 @@ def test_lta_steer_cmd(self):
should_tx = not req and not req2 and angle == 0
self.assertEqual(should_tx, self._tx(self._lta_msg(req, req2, angle)))

def test_steer_req_bit(self):
"""
On Toyota, you can ramp up torque and then set the STEER_REQUEST bit and the
EPS will ramp up faster than the effective panda safety limits. This tests:
- Nothing is sent when cutting torque
- Nothing is blocked when sending torque normally
"""
self.safety.set_controls_allowed(True)
for _ in range(100):
self._set_prev_torque(self.MAX_TORQUE)
self.assertFalse(self._tx(self._torque_cmd_msg(self.MAX_TORQUE, steer_req=0)))

self._set_prev_torque(self.MAX_TORQUE)
for _ in range(100):
self.assertTrue(self._tx(self._torque_cmd_msg(self.MAX_TORQUE, steer_req=1)))

def test_rx_hook(self):
# checksum checks
for msg in ["trq", "pcm"]:
Expand Down

0 comments on commit aaa70b1

Please sign in to comment.