@@ -159,7 +159,7 @@ def test_send_goal_async(self):
159159 try :
160160 self .assertTrue (ac .wait_for_server (timeout_sec = 2.0 ))
161161 future = ac .send_goal_async (Fibonacci .Goal ())
162- rclpy .spin_until_future_complete (self .node , future , self .executor )
162+ rclpy .spin_until_complete (self .node , future , self .executor )
163163 self .assertTrue (future .done ())
164164 goal_handle = future .result ()
165165 self .assertTrue (goal_handle .accepted )
@@ -177,7 +177,7 @@ def test_send_goal_async_with_feedback_after_goal(self):
177177 Fibonacci .Goal (),
178178 feedback_callback = self .feedback_callback ,
179179 goal_uuid = goal_uuid )
180- rclpy .spin_until_future_complete (self .node , future , self .executor )
180+ rclpy .spin_until_complete (self .node , future , self .executor )
181181
182182 # Publish feedback after goal has been accepted
183183 self .mock_action_server .publish_feedback (goal_uuid )
@@ -202,7 +202,7 @@ def test_send_goal_async_with_feedback_before_goal(self):
202202 Fibonacci .Goal (),
203203 feedback_callback = self .feedback_callback ,
204204 goal_uuid = goal_uuid )
205- rclpy .spin_until_future_complete (self .node , future , self .executor )
205+ rclpy .spin_until_complete (self .node , future , self .executor )
206206
207207 # Check the feedback was not received
208208 self .assertEqual (self .feedback , None )
@@ -220,14 +220,14 @@ def test_send_goal_async_with_feedback_for_another_goal(self):
220220 Fibonacci .Goal (),
221221 feedback_callback = self .feedback_callback ,
222222 goal_uuid = first_goal_uuid )
223- rclpy .spin_until_future_complete (self .node , future , self .executor )
223+ rclpy .spin_until_complete (self .node , future , self .executor )
224224
225225 # Send another goal, but without a feedback callback
226226 second_goal_uuid = UUID (uuid = list (uuid .uuid4 ().bytes ))
227227 future = ac .send_goal_async (
228228 Fibonacci .Goal (),
229229 goal_uuid = second_goal_uuid )
230- rclpy .spin_until_future_complete (self .node , future , self .executor )
230+ rclpy .spin_until_complete (self .node , future , self .executor )
231231
232232 # Publish feedback for the second goal
233233 self .mock_action_server .publish_feedback (second_goal_uuid )
@@ -251,7 +251,7 @@ def test_send_goal_async_with_feedback_for_not_a_goal(self):
251251 Fibonacci .Goal (),
252252 feedback_callback = self .feedback_callback ,
253253 goal_uuid = goal_uuid )
254- rclpy .spin_until_future_complete (self .node , future , self .executor )
254+ rclpy .spin_until_complete (self .node , future , self .executor )
255255
256256 # Publish feedback for a non-existent goal ID
257257 self .mock_action_server .publish_feedback (UUID (uuid = list (uuid .uuid4 ().bytes )))
@@ -272,9 +272,9 @@ def test_send_goal_multiple(self):
272272 future_0 = ac .send_goal_async (Fibonacci .Goal ())
273273 future_1 = ac .send_goal_async (Fibonacci .Goal ())
274274 future_2 = ac .send_goal_async (Fibonacci .Goal ())
275- rclpy .spin_until_future_complete (self .node , future_0 , executor )
276- rclpy .spin_until_future_complete (self .node , future_1 , executor )
277- rclpy .spin_until_future_complete (self .node , future_2 , executor )
275+ rclpy .spin_until_complete (self .node , future_0 , executor )
276+ rclpy .spin_until_complete (self .node , future_1 , executor )
277+ rclpy .spin_until_complete (self .node , future_2 , executor )
278278 self .assertTrue (future_0 .done ())
279279 self .assertTrue (future_1 .done ())
280280 self .assertTrue (future_2 .done ())
@@ -300,13 +300,13 @@ def test_send_cancel_async(self):
300300
301301 # Send a goal
302302 goal_future = ac .send_goal_async (Fibonacci .Goal ())
303- rclpy .spin_until_future_complete (self .node , goal_future , self .executor )
303+ rclpy .spin_until_complete (self .node , goal_future , self .executor )
304304 self .assertTrue (goal_future .done ())
305305 goal_handle = goal_future .result ()
306306
307307 # Cancel the goal
308308 cancel_future = goal_handle .cancel_goal_async ()
309- rclpy .spin_until_future_complete (self .node , cancel_future , self .executor )
309+ rclpy .spin_until_complete (self .node , cancel_future , self .executor )
310310 self .assertTrue (cancel_future .done ())
311311 self .assertEqual (
312312 cancel_future .result ().goals_canceling [0 ].goal_id ,
@@ -321,13 +321,13 @@ def test_get_result_async(self):
321321
322322 # Send a goal
323323 goal_future = ac .send_goal_async (Fibonacci .Goal ())
324- rclpy .spin_until_future_complete (self .node , goal_future , self .executor )
324+ rclpy .spin_until_complete (self .node , goal_future , self .executor )
325325 self .assertTrue (goal_future .done ())
326326 goal_handle = goal_future .result ()
327327
328328 # Get the goal result
329329 result_future = goal_handle .get_result_async ()
330- rclpy .spin_until_future_complete (self .node , result_future , self .executor )
330+ rclpy .spin_until_complete (self .node , result_future , self .executor )
331331 self .assertTrue (result_future .done ())
332332 finally :
333333 ac .destroy ()
0 commit comments