test: 100% coverage

ref: N25B-393
This commit is contained in:
Storm
2026-01-29 12:28:34 +01:00
parent 56becd84ac
commit 24c7fa216f
2 changed files with 23 additions and 2 deletions

View File

@@ -68,10 +68,10 @@ class VideoSender(SocketBase):
height_bytes = struct.pack('<I', height)
self.socket.send_multipart([width_bytes, height_bytes, raw_data])
except KeyboardInterrupt:
logging.info("Video receiving loop interrupted by user.")
except:
logging.warn("Failed to retrieve video image from robot.")
except KeyboardInterrupt:
logging.info("Video receiving loop interrupted by user.")
finally:
vid_service.unsubscribe(vid_stream_name)
logging.info("Unsubscribed from video stream.")