@@ -910,7 +910,7 @@ TEST_P(TestControllerManagerWithUpdateRates, per_controller_equal_and_higher_upd
910910 // [cm_update_rate, 2*cm_update_rate)
911911 EXPECT_THAT (
912912 test_controller->update_period_ .seconds (),
913- testing::AllOf (testing::Ge (0.85 / cm_update_rate), testing::Lt ((1.15 / cm_update_rate))));
913+ testing::AllOf (testing::Ge (0.8 / cm_update_rate), testing::Lt ((1.2 / cm_update_rate))));
914914 ASSERT_EQ (
915915 test_controller->internal_counter ,
916916 cm_->get_loaded_controllers ()[0 ].execution_time_statistics ->GetCount ());
@@ -1239,10 +1239,10 @@ TEST_F(TestAsyncControllerUpdateRates, check_the_async_controller_update_rate_an
12391239 testing::AnyOf (testing::Ge (exp_counter - 1 ), testing::Le (exp_counter)));
12401240 EXPECT_THAT (
12411241 cm_->get_loaded_controllers ()[0 ].periodicity_statistics ->Average (),
1242- testing::AllOf (testing::Ge (0.95 * exp_periodicity), testing::Lt ((1.05 * exp_periodicity))));
1242+ testing::AllOf (testing::Ge (0.9 * exp_periodicity), testing::Lt ((1.1 * exp_periodicity))));
12431243 EXPECT_THAT (
12441244 cm_->get_loaded_controllers ()[0 ].periodicity_statistics ->Min (),
1245- testing::AllOf (testing::Ge (0.75 * exp_periodicity), testing::Lt ((1.2 * exp_periodicity))));
1245+ testing::AllOf (testing::Ge (0.5 * exp_periodicity), testing::Lt ((1.2 * exp_periodicity))));
12461246 EXPECT_THAT (
12471247 cm_->get_loaded_controllers ()[0 ].periodicity_statistics ->Max (),
12481248 testing::AllOf (testing::Ge (0.75 * exp_periodicity), testing::Lt ((2.0 * exp_periodicity))));
0 commit comments