@@ -1887,10 +1887,11 @@ class ResourceManagerTestReadWriteDifferentReadWriteRate : public ResourceManage
1887
1887
{
1888
1888
if (i > (cm_update_rate_ / rate))
1889
1889
{
1890
- const double expec_execution_time = (1 .e6 / (3 * rate)) + 200.0 ;
1890
+ const double expec_read_execution_time = (1 .e6 / (3 * rate)) + 200.0 ;
1891
+ const double expec_write_execution_time = (1 .e6 / (6 * rate)) + 200.0 ;
1891
1892
EXPECT_LT (
1892
1893
status_map[component_name].read_statistics ->execution_time .get_statistics ().average ,
1893
- expec_execution_time );
1894
+ expec_read_execution_time );
1894
1895
EXPECT_LT (
1895
1896
status_map[component_name].read_statistics ->periodicity .get_statistics ().average ,
1896
1897
1.2 * rate);
@@ -1903,7 +1904,7 @@ class ResourceManagerTestReadWriteDifferentReadWriteRate : public ResourceManage
1903
1904
1904
1905
EXPECT_LT (
1905
1906
status_map[component_name].write_statistics ->execution_time .get_statistics ().average ,
1906
- expec_execution_time );
1907
+ expec_write_execution_time );
1907
1908
EXPECT_LT (
1908
1909
status_map[component_name].write_statistics ->periodicity .get_statistics ().average ,
1909
1910
1.2 * rate);
@@ -2292,29 +2293,30 @@ class ResourceManagerTestAsyncReadWrite : public ResourceManagerTest
2292
2293
if (check_for_updated_values)
2293
2294
{
2294
2295
const unsigned int rw_rate = 100u ;
2295
- const double expec_execution_time = (1 .e6 / (3 * rw_rate)) + 200.0 ;
2296
+ const double expec_read_execution_time = (1 .e6 / (3 * rw_rate)) + 200.0 ;
2297
+ const double expec_write_execution_time = (1 .e6 / (6 * rw_rate)) + 200.0 ;
2296
2298
check_periodicity (TEST_ACTUATOR_HARDWARE_NAME, rw_rate);
2297
2299
check_periodicity (TEST_SYSTEM_HARDWARE_NAME, rw_rate);
2298
2300
EXPECT_LT (
2299
2301
status_map[TEST_ACTUATOR_HARDWARE_NAME]
2300
2302
.read_statistics ->execution_time .get_statistics ()
2301
2303
.average ,
2302
- expec_execution_time );
2304
+ expec_read_execution_time );
2303
2305
EXPECT_LT (
2304
2306
status_map[TEST_ACTUATOR_HARDWARE_NAME]
2305
2307
.write_statistics ->execution_time .get_statistics ()
2306
2308
.average ,
2307
- expec_execution_time );
2309
+ expec_write_execution_time );
2308
2310
EXPECT_LT (
2309
2311
status_map[TEST_SYSTEM_HARDWARE_NAME]
2310
2312
.read_statistics ->execution_time .get_statistics ()
2311
2313
.average ,
2312
- expec_execution_time );
2314
+ expec_read_execution_time );
2313
2315
EXPECT_LT (
2314
2316
status_map[TEST_SYSTEM_HARDWARE_NAME]
2315
2317
.write_statistics ->execution_time .get_statistics ()
2316
2318
.average ,
2317
- expec_execution_time );
2319
+ expec_write_execution_time );
2318
2320
}
2319
2321
}
2320
2322
0 commit comments