Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Aug 23, 2023
1 parent 51f92c4 commit 8f3901f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/gtest_fallback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ TEST_F(ReactiveFallbackTest, Condition1ToTrue)
BT::NodeStatus state = root.executeTick();

ASSERT_EQ(NodeStatus::RUNNING, state);
ASSERT_EQ(NodeStatus::FAILURE, condition_1.status());
ASSERT_EQ(NodeStatus::FAILURE, condition_2.status());
ASSERT_EQ(NodeStatus::IDLE, condition_1.status());
ASSERT_EQ(NodeStatus::IDLE, condition_2.status());
ASSERT_EQ(NodeStatus::RUNNING, action_1.status());

condition_1.setExpectedResult(NodeStatus::SUCCESS);
Expand All @@ -171,8 +171,8 @@ TEST_F(ReactiveFallbackTest, Condition2ToTrue)
BT::NodeStatus state = root.executeTick();

ASSERT_EQ(NodeStatus::RUNNING, state);
ASSERT_EQ(NodeStatus::FAILURE, condition_1.status());
ASSERT_EQ(NodeStatus::FAILURE, condition_2.status());
ASSERT_EQ(NodeStatus::IDLE, condition_1.status());
ASSERT_EQ(NodeStatus::IDLE, condition_2.status());
ASSERT_EQ(NodeStatus::RUNNING, action_1.status());

condition_2.setExpectedResult(NodeStatus::SUCCESS);
Expand Down
2 changes: 1 addition & 1 deletion tests/gtest_sequence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ TEST_F(ComplexSequenceTest, ComplexSequenceConditionsTrue)
BT::NodeStatus state = root.executeTick();

ASSERT_EQ(NodeStatus::RUNNING, state);
ASSERT_EQ(NodeStatus::SUCCESS, seq_conditions.status());
ASSERT_EQ(NodeStatus::IDLE, seq_conditions.status());
ASSERT_EQ(NodeStatus::IDLE, condition_1.status());
ASSERT_EQ(NodeStatus::IDLE, condition_1.status());
ASSERT_EQ(NodeStatus::RUNNING, action_1.status());
Expand Down

0 comments on commit 8f3901f

Please sign in to comment.