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