Skip to content

Commit dbda53e

Browse files
author
root
committed
Make sure of logic error gets thrown in SetBlackboard ChangeType tests
1 parent c1e9f34 commit dbda53e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/gtest_blackboard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ TEST(BlackboardTest, SetBlackboard_ChangeType1)
742742
const auto entry_ptr = blackboard->getEntry("other_point");
743743
std::this_thread::sleep_for(std::chrono::milliseconds{ 5 });
744744
// Second tick should throw due to type mismatch
745-
EXPECT_THROW({ tree.tickExactlyOnce(); }, BT::LogicError);
745+
EXPECT_THROW({ tree.tickWhileRunning(); }, BT::LogicError);
746746
}
747747

748748
TEST(BlackboardTest, SetBlackboard_ChangeType2)
@@ -773,7 +773,7 @@ TEST(BlackboardTest, SetBlackboard_ChangeType2)
773773
const auto entry_ptr = blackboard->getEntry("other_point");
774774
std::this_thread::sleep_for(std::chrono::milliseconds{ 5 });
775775
// Second tick should throw due to type mismatch
776-
EXPECT_THROW({ tree.tickExactlyOnce(); }, BT::LogicError);
776+
EXPECT_THROW({ tree.tickWhileRunning(); }, BT::LogicError);
777777
}
778778

779779
// Simple Action that updates an instance of Point in the blackboard

0 commit comments

Comments
 (0)