Skip to content

Commit e730245

Browse files
sshanespektor56
authored andcommitted
test_models: check cruiseState.available (commaai#24924)
* check available is true if enabled is true * remove extra line
1 parent 8a2f10e commit e730245

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

selfdrive/car/tests/test_models.py

+1
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def test_panda_safety_carstate(self):
221221
# TODO: check rest of panda's carstate (steering, ACC main on, etc.)
222222

223223
checks['gasPressed'] += CS.gasPressed != self.safety.get_gas_pressed_prev()
224+
checks['cruiseState'] += CS.cruiseState.enabled and not CS.cruiseState.available
224225

225226
# TODO: remove this exception once this mismatch is resolved
226227
brake_pressed = CS.brakePressed

0 commit comments

Comments
 (0)