Skip to content

Commit c4acce0

Browse files
committed
lint fixing and longer server time for test
Signed-off-by: silanus23 <[email protected]>
1 parent b7c91c8 commit c4acce0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nav2_behavior_tree/include/nav2_behavior_tree/bt_action_node.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class BtActionNode : public BT::ActionNodeBase
220220
}
221221
}
222222
} else {
223-
if (!BT::isStatusActive(status())) {
223+
if (!BT::isStatusActive(status())) {
224224
needs_initialization_ = true;
225225
}
226226
}
@@ -522,7 +522,7 @@ class BtActionNode : public BT::ActionNodeBase
522522
// Can be set in on_tick or on_wait_for_result to indicate if a goal should be sent.
523523
bool should_send_goal_;
524524

525-
// Initialized to UINT64_MAX as a sentinel value to ensure the first tick always triggers initialization
525+
// Initialized to UINT64_MAX as a sentinel value to ensure the first tick always triggers
526526
bool is_global_ {false};
527527
uint64_t last_run_id_ {UINT64_MAX};
528528
};

nav2_behavior_tree/test/plugins/action/test_bt_action_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ TEST_F(BTActionNodeTestFixture, test_run_id_zero_edge_case)
655655

656656
tree_ = std::make_shared<BT::Tree>(factory_->createTreeFromText(xml_txt, config_->blackboard));
657657
action_server_->setHandleGoalSleepDuration(2ms);
658-
action_server_->setServerLoopRate(10ns);
658+
action_server_->setServerLoopRate(10ms);
659659

660660
auto result = tree_->tickOnce();
661661
EXPECT_EQ(result, BT::NodeStatus::RUNNING);

0 commit comments

Comments
 (0)