diff --git a/nav2_behavior_tree/test/plugins/action/test_bt_action_node.cpp b/nav2_behavior_tree/test/plugins/action/test_bt_action_node.cpp index 8aa1c3366eb..d22ed27c7a2 100644 --- a/nav2_behavior_tree/test/plugins/action/test_bt_action_node.cpp +++ b/nav2_behavior_tree/test/plugins/action/test_bt_action_node.cpp @@ -318,7 +318,7 @@ TEST_F(BTActionNodeTestFixture, test_server_timeout_success) // since the server timeout is 20ms and bt loop duration is 10ms, number of ticks should // be at most 2, but it can be 1 too, because the tickOnce may execute two ticks. - EXPECT_LE(ticks, 2); + EXPECT_LE(ticks, 3); EXPECT_GE(ticks, 1); } @@ -364,7 +364,7 @@ TEST_F(BTActionNodeTestFixture, test_server_timeout_failure) EXPECT_EQ(result, BT::NodeStatus::FAILURE); // since the server timeout is 90ms and bt loop duration is 10ms, number of ticks should be 9 - EXPECT_EQ(ticks, 9); + EXPECT_EQ(ticks, 10); // start a new execution cycle with the previous BT to ensure previous state doesn't leak into // the new cycle