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)
683
683
const auto entry_ptr = blackboard->getEntry (" other_point" );
684
684
const auto ts1 = entry_ptr->stamp ;
685
685
const auto seq_id1 = entry_ptr->sequence_id ;
686
- std::this_thread::sleep_for (std::chrono::milliseconds{ 5 });
687
- tree.tickExactlyOnce ();
686
+ tree.tickWhileRunning ();
688
687
const auto ts2 = entry_ptr->stamp ;
689
688
const auto seq_id2 = entry_ptr->sequence_id ;
690
689
@@ -718,8 +717,7 @@ TEST(BlackboardTest, SetBlackboard_ChangeType)
718
717
// First tick should succeed
719
718
ASSERT_NO_THROW (tree.tickExactlyOnce ());
720
719
const auto entry_ptr = blackboard->getEntry (" other_point" );
721
- std::this_thread::sleep_for (std::chrono::milliseconds{ 5 });
722
720
// Second tick should throw due to type mismatch
723
- EXPECT_THROW ({ tree.tickExactlyOnce (); }, BT::LogicError);
721
+ EXPECT_THROW ({ tree.tickWhileRunning (); }, BT::LogicError);
724
722
// EXPECT_EQ();
725
723
}
You can’t perform that action at this time.
0 commit comments