Skip to content

Commit bae072d

Browse files
committed
Increase tolerance for timer tests from 0.1 seconds to 0.5 seconds
Distro A, OPSEC #4584. You may have additional rights; please see https://rosmilitary.org/faq/?category=ros-2-license Signed-off-by: matthew.lanting <[email protected]>
1 parent 59a09b2 commit bae072d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test_launch_ros/test/test_launch_ros/actions/test_ros_timer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_timer_action_sanity_check():
115115
assert shutdown_reasons[0].reason == 'One second timeout'
116116

117117
# Verify that 1 sec has passed between start of test and timeout
118-
tolerance = 0.1
118+
tolerance = 0.5
119119
assert (end_time - start_time) > 1 - tolerance
120120
assert (end_time - start_time) < 1 + tolerance
121121

@@ -195,6 +195,6 @@ def timer_callback(publisher, time_msg):
195195

196196
# Timer is using sim time which is 100x faster than system time,
197197
# so 200 sec timer should finish in 2 sec
198-
tolerance = 0.1
198+
tolerance = 0.5
199199
assert (end_time - start_time) > 2 - tolerance
200200
assert (end_time - start_time) < 2 + tolerance

0 commit comments

Comments
 (0)