From 1507d479e099549a81c99fd9f702b4a278fa763d Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 10 Jan 2015 18:18:28 +0100 Subject: [PATCH] commander: Refresh safety tests to avoid false positives in unit tests. --- .../commander/commander_tests/state_machine_helper_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/commander/commander_tests/state_machine_helper_test.cpp b/src/modules/commander/commander_tests/state_machine_helper_test.cpp index 874090e93e..3cfa8b4c6c 100644 --- a/src/modules/commander/commander_tests/state_machine_helper_test.cpp +++ b/src/modules/commander/commander_tests/state_machine_helper_test.cpp @@ -280,6 +280,8 @@ bool StateMachineHelperTest::armingStateTransitionTest(void) status.arming_state = test->current_state.arming_state; status.condition_system_sensors_initialized = test->condition_system_sensors_initialized; status.hil_state = test->hil_state; + // The power status of the test unit is not relevant for the unit test + status.circuit_breaker_engaged_power_check = true; safety.safety_switch_available = test->safety_switch_available; safety.safety_off = test->safety_off; armed.armed = test->current_state.armed;