Skip to content

Commit 7c295f9

Browse files
Merge branch 'master' into use/filelock/spawner
2 parents 710ae40 + 74cb0f0 commit 7c295f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

controller_manager/test/test_controller_manager.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)