Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion selfdrive/thermald/tests/test_power_monitoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def test_car_battery_integration_lower_limit(self, hw_type):
@parameterized.expand(ALL_PANDA_TYPES)
def test_max_time_offroad(self, hw_type):
MOCKED_MAX_OFFROAD_TIME = 3600
with pm_patch("MAX_TIME_OFFROAD_S", MOCKED_MAX_OFFROAD_TIME, constant=True), pm_patch("HARDWARE.get_current_power_draw", None):
POWER_DRAW = 0 # To stop shutting down for other reasons
with pm_patch("MAX_TIME_OFFROAD_S", MOCKED_MAX_OFFROAD_TIME, constant=True), pm_patch("HARDWARE.get_current_power_draw", POWER_DRAW):
pm = PowerMonitoring()
pm.car_battery_capacity_uWh = CAR_BATTERY_CAPACITY_uWh
start_time = ssb
Expand Down