Skip to content

Commit

Permalink
Shorten really long timeouts
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
  • Loading branch information
sloretz committed Dec 14, 2021
1 parent a07942d commit 0530656
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rclpy/test/test_clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def test_sleep_until_ros_time_toggled(default_context, ros_time_enabled):

def run():
nonlocal retval
retval = clock.sleep_until(clock.now() + Duration(seconds=999999))
retval = clock.sleep_until(clock.now() + Duration(seconds=10))

t = threading.Thread(target=run, daemon=True)
t.start()
Expand All @@ -303,7 +303,7 @@ def test_sleep_until_context_shut_down(non_default_context):
def run():
nonlocal retval
retval = clock.sleep_until(
clock.now() + Duration(seconds=999999), context=non_default_context)
clock.now() + Duration(seconds=10), context=non_default_context)

t = threading.Thread(target=run, daemon=True)
t.start()
Expand All @@ -324,7 +324,7 @@ def test_sleep_until_ros_time_enabled(default_context):
clock._set_ros_time_is_active(True)

start_time = Time(seconds=1, clock_type=ClockType.ROS_TIME)
stop_time = start_time + Duration(seconds=99999)
stop_time = start_time + Duration(seconds=10)
clock.set_ros_time_override(start_time)

retval = None
Expand Down

0 comments on commit 0530656

Please sign in to comment.