Skip to content

Commit eeac508

Browse files
authored
Increase test time tolerance (#305)
* Increase test time tolerance Signed-off-by: Jorge Perez <[email protected]>
1 parent 2b51343 commit eeac508

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test_launch_ros/test/test_launch_ros/actions/test_ros_timer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ def test_timer_action_sanity_check():
114114
assert 0 == ls.run()
115115
assert shutdown_reasons[0].reason == 'One second timeout'
116116

117-
# Verify that 1 sec has passed between start of test and timeout
118-
tolerance = 0.1
119-
assert (end_time - start_time) > 1 - tolerance
117+
# Verify that at least 1 sec has passed between start of test and timeout
118+
tolerance = 1.0
119+
assert (end_time - start_time) > 1
120120
assert (end_time - start_time) < 1 + tolerance
121121

122122

0 commit comments

Comments
 (0)