Skip to content

Commit a34ef90

Browse files
Increase controller period tolerance in tests (#2388) (#2389)
(cherry picked from commit ad47e2a) Co-authored-by: Sai Kishor Kothakota <[email protected]>
1 parent 0bff66e commit a34ef90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller_manager/test/test_controller_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ TEST_P(TestControllerUpdateRates, check_the_controller_update_rate)
10541054
test_controller->update_period_.seconds(),
10551055
testing::AllOf(
10561056
testing::Gt(0.99 * controller_period),
1057-
testing::Lt((1.05 * controller_period) + PERIOD.seconds())))
1057+
testing::Lt((1.2 * controller_period) + PERIOD.seconds())))
10581058
<< "update_counter: " << update_counter
10591059
<< " desired controller period: " << controller_period
10601060
<< " actual controller period: " << test_controller->update_period_.seconds();

0 commit comments

Comments
 (0)