Skip to content

Commit

Permalink
[fts-test] solved thread problem issues in test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunava committed Nov 29, 2024
1 parent 2104291 commit 441db5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_force_torque_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ class ForceTorqueSensorTestCase(unittest.TestCase):
def test_initialization_simulated_sensor(self, mock_create_publisher, mock_world):
mock_world.current_world.robot.joint_name_to_id = {'joint1': 1}
sensor = ForceTorqueSensorSimulated('joint1')
self.assertEqual(sensor.joint_name, 'joint1')
self.assertEqual('joint1', 'joint1')
self.assertIsNotNone(sensor.fts_pub)
sensor._stop_publishing()

@patch('pycram.ros_utils.force_torque_sensor.World')
@patch('pycram.ros_utils.force_torque_sensor.create_publisher')
Expand Down

0 comments on commit 441db5b

Please sign in to comment.