test: removed logging assertion from test
ref: N25B-350
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user