Skip to content

Commit

Permalink
Increasing test count from timeout handling changes (ros-navigation#4234
Browse files Browse the repository at this point in the history
)

Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: enricosutera <enricosutera@outlook.com>
  • Loading branch information
SteveMacenski authored and enricosutera committed May 19, 2024
1 parent 5575cd7 commit 370ec08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 370ec08

Please sign in to comment.