Skip to content

Commit 60bc423

Browse files
author
root
committed
Fixed new test cases
1 parent bfa14d7 commit 60bc423

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/gtest_blackboard.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,7 @@ TEST(BlackboardTest, SetBlackboard_Upd_Ts_SeqId)
683683
const auto entry_ptr = blackboard->getEntry("other_point");
684684
const auto ts1 = entry_ptr->stamp;
685685
const auto seq_id1 = entry_ptr->sequence_id;
686-
std::this_thread::sleep_for(std::chrono::milliseconds{ 5 });
687-
tree.tickExactlyOnce();
686+
tree.tickWhileRunning();
688687
const auto ts2 = entry_ptr->stamp;
689688
const auto seq_id2 = entry_ptr->sequence_id;
690689

@@ -718,8 +717,7 @@ TEST(BlackboardTest, SetBlackboard_ChangeType)
718717
// First tick should succeed
719718
ASSERT_NO_THROW(tree.tickExactlyOnce());
720719
const auto entry_ptr = blackboard->getEntry("other_point");
721-
std::this_thread::sleep_for(std::chrono::milliseconds{ 5 });
722720
// Second tick should throw due to type mismatch
723-
EXPECT_THROW({ tree.tickExactlyOnce(); }, BT::LogicError);
721+
EXPECT_THROW({ tree.tickWhileRunning(); }, BT::LogicError);
724722
// EXPECT_EQ();
725723
}

0 commit comments

Comments
 (0)