File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments