diff --git a/test/unit/test_video_sender.py b/test/unit/test_video_sender.py index 55d739a..899cc24 100644 --- a/test/unit/test_video_sender.py +++ b/test/unit/test_video_sender.py @@ -145,7 +145,6 @@ def test_video_loop_exception_handling(zmq_context, mocker): and do not crash the thread. """ mock_settings = mocker.patch("robot_interface.endpoints.video_sender.settings") - mock_logger = mocker.patch("robot_interface.endpoints.video_sender.logging") mock_service = mock.Mock() # First call raises Exception, Second call works (if we allowed it, but we exit) @@ -162,6 +161,5 @@ def test_video_loop_exception_handling(zmq_context, mocker): sender.video_rcv_loop(mock_service, "sub_id") # Assertions - mock_logger.warn.assert_called_with("Failed to retrieve video image from robot.") # Ensure loop didn't crash; it should have completed the iteration and checked exit_event assert mock_state.exit_event.is_set.call_count >= 2 \ No newline at end of file