Builds, unittests failing
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
|
||||
TEST_CASE("Action Helper", "[ActionHelper]") {
|
||||
|
||||
MessageQueueMockBase testMqMock;
|
||||
MessageQueueMock testMqMock(1);
|
||||
ActionHelperOwnerMockBase testDhMock(&testMqMock);
|
||||
CommandMessage actionMessage;
|
||||
ActionId_t testActionId = (ActionId_t) TestActions::TEST_ACTION;
|
||||
@ -24,7 +24,7 @@ TEST_CASE("Action Helper", "[ActionHelper]") {
|
||||
SECTION("Simple tests") {
|
||||
ActionMessage::setCommand(&actionMessage, testActionId, paramAddress);
|
||||
CHECK(not testDhMock.executeActionCalled);
|
||||
REQUIRE(testDhMock.getActionHelper()->handleActionMessage(&actionMessage) == retval::CATCH_OK);
|
||||
REQUIRE(testDhMock.getActionHelper()->handleActionMessage(&actionMessage) == returnvalue::OK);
|
||||
CHECK(testDhMock.executeActionCalled);
|
||||
// No message is sent if everything is alright.
|
||||
CHECK(not testMqMock.wasMessageSent());
|
||||
|
Reference in New Issue
Block a user