Skip to content

Commit a4ce497

Browse files
committed
refactor checking for a successful cancelation
1 parent d7488c9 commit a4ce497

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ur_robot_driver/test/integration_test_trajectory_until.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
from controller_manager_msgs.srv import SwitchController
4242
from ur_msgs.action import FollowJointTrajectoryUntil
43-
from action_msgs.srv import CancelGoal
4443
from trajectory_msgs.msg import JointTrajectory, JointTrajectoryPoint
4544
from builtin_interfaces.msg import Duration
4645

@@ -159,4 +158,4 @@ def test_trajectory_until_can_cancel(self, tf_prefix, initial_joint_controller):
159158
)
160159
self.assertTrue(goal_handle.accepted)
161160
result = self._trajectory_until_interface.cancel_goal(goal_handle)
162-
self.assertEqual(result.return_code, CancelGoal.ERROR_NONE)
161+
self.assertTrue(len(result.goals_canceling) > 0)

0 commit comments

Comments
 (0)