Skip to content

Commit

Permalink
sleep offset could be much longer than expected.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
  • Loading branch information
fujitatomoya committed Oct 24, 2023
1 parent 5df6ea3 commit 1097ba0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rclcpp/test/rclcpp/test_rate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class TestRate : public ::testing::Test
*/
TEST_F(TestRate, rate_basics) {
auto period = std::chrono::milliseconds(1000);
auto offset = std::chrono::milliseconds(500);
auto offset = std::chrono::milliseconds(300);
auto epsilon = std::chrono::milliseconds(100);
double overrun_ratio = 1.5;

Expand Down Expand Up @@ -95,7 +95,7 @@ TEST_F(TestRate, rate_basics) {

TEST_F(TestRate, wall_rate_basics) {
auto period = std::chrono::milliseconds(100);
auto offset = std::chrono::milliseconds(50);
auto offset = std::chrono::milliseconds(30);
auto epsilon = std::chrono::milliseconds(1);
double overrun_ratio = 1.5;

Expand Down Expand Up @@ -155,7 +155,7 @@ TEST_F(TestRate, wall_rate_basics) {
*/
TEST_F(TestRate, generic_rate) {
auto period = std::chrono::milliseconds(100);
auto offset = std::chrono::milliseconds(50);
auto offset = std::chrono::milliseconds(30);
auto epsilon = std::chrono::milliseconds(1);
double overrun_ratio = 1.5;

Expand Down

0 comments on commit 1097ba0

Please sign in to comment.