Skip to content

Commit d030ea4

Browse files
Increasing test count from timeout handling changes (#4234)
Signed-off-by: Steve Macenski <[email protected]>
1 parent 911555a commit d030ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nav2_behavior_tree/test/plugins/action/test_bt_action_node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ TEST_F(BTActionNodeTestFixture, test_server_timeout_success)
318318

319319
// since the server timeout is 20ms and bt loop duration is 10ms, number of ticks should
320320
// be at most 2, but it can be 1 too, because the tickOnce may execute two ticks.
321-
EXPECT_LE(ticks, 2);
321+
EXPECT_LE(ticks, 3);
322322
EXPECT_GE(ticks, 1);
323323
}
324324

@@ -364,7 +364,7 @@ TEST_F(BTActionNodeTestFixture, test_server_timeout_failure)
364364
EXPECT_EQ(result, BT::NodeStatus::FAILURE);
365365

366366
// since the server timeout is 90ms and bt loop duration is 10ms, number of ticks should be 9
367-
EXPECT_EQ(ticks, 9);
367+
EXPECT_EQ(ticks, 10);
368368

369369
// start a new execution cycle with the previous BT to ensure previous state doesn't leak into
370370
// the new cycle

0 commit comments

Comments
 (0)