Skip to content

Commit 9b41128

Browse files
increase tolerance of the controller manager tests (ros-controls#2629) (ros-controls#2636)
(cherry picked from commit 5db93ce) Co-authored-by: Sai Kishor Kothakota <[email protected]>
1 parent a578674 commit 9b41128

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller_manager/test/test_controller_manager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ TEST_P(TestControllerManagerWithUpdateRates, per_controller_equal_and_higher_upd
912912
// [cm_update_rate, 2*cm_update_rate)
913913
EXPECT_THAT(
914914
test_controller->update_period_.seconds(),
915-
testing::AllOf(testing::Ge(0.7 / cm_update_rate), testing::Lt((1.6 / cm_update_rate))));
915+
testing::AllOf(testing::Ge(0.65 / cm_update_rate), testing::Lt((1.6 / cm_update_rate))));
916916
ASSERT_EQ(
917917
test_controller->internal_counter,
918918
cm_->get_loaded_controllers()[0].execution_time_statistics->get_count());
@@ -1058,7 +1058,7 @@ TEST_P(TestControllerUpdateRates, check_the_controller_update_rate)
10581058
EXPECT_THAT(
10591059
test_controller->update_period_.seconds(),
10601060
testing::AllOf(
1061-
testing::Gt(0.99 * exp_controller_period),
1061+
testing::Gt(0.65 * exp_controller_period),
10621062
testing::Lt((1.2 * exp_controller_period) + PERIOD.seconds())))
10631063
<< "update_counter: " << update_counter
10641064
<< " desired controller period: " << controller_period
@@ -1211,7 +1211,7 @@ TEST_F(TestAsyncControllerUpdateRates, check_the_async_controller_update_rate_an
12111211
EXPECT_THAT(
12121212
test_controller->update_period_.seconds(),
12131213
testing::AllOf(
1214-
testing::Gt(0.99 * exp_controller_period),
1214+
testing::Gt(0.65 * exp_controller_period),
12151215
testing::Lt((1.05 * exp_controller_period) + PERIOD.seconds())))
12161216
<< "update_counter: " << update_counter
12171217
<< " desired controller period: " << controller_period

0 commit comments

Comments
 (0)