Skip to content

Commit

Permalink
✅ (ut): Refactor suspendHardwareForDeepSleep test
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Feb 14, 2024
1 parent 84c13fb commit 65c40b7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/RobotKit/tests/RobotController_test_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ TEST_F(RobotControllerTest, suspendHardwareForDeepSleep)
EXPECT_CALL(mock_lcd, enableDeepSleep);
// TODO: Expect_call of RFID

auto components = std::to_array<interface::DeepSleepEnabled *>({
&mock_motor_left,
&mock_motor_right,
&mock_lcd,
});

rc.registerDeepSleepEnabledComponents(components);
rc.suspendHardwareForDeepSleep();
}

Expand Down

0 comments on commit 65c40b7

Please sign in to comment.