Skip to content

Commit

Permalink
Replace deprecated spin_until_future_complete with spin_until_complete
Browse files Browse the repository at this point in the history
Signed-off-by: Hubert Liberacki <[email protected]>
  • Loading branch information
hliberacki committed Apr 2, 2022
1 parent eeac508 commit d65ad3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion launch_testing_ros/test/examples/set_param_launch_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def set_parameter(self, state=True, timeout=5.0):
request = SetParameters.Request()
request.parameters = parameters
future = client.call_async(request)
rclpy.spin_until_future_complete(self, future, timeout_sec=timeout)
rclpy.spin_until_complete(self, future, timeout_sec=timeout)

assert future.done(), 'Client request timed out'

Expand Down

0 comments on commit d65ad3e

Please sign in to comment.