def test_cleanup_without_thread(mock_container, mock_log_fn):
    """Test that cleanup works even if stdout_thread is not initialized."""
    streamer = LogStreamer(mock_container, mock_log_fn)
    streamer.stdout_thread = None
    streamer.close()  # Should not raise any exceptions
Test that cleanup works even if stdout_thread is not initialized.
tests/unit/test_log_streamer.py