manager = DagFileProcessorManager(
            dag_directory="directory",
            max_runs=1,
            processor_timeout=timedelta(days=365),
            signal_conn=MagicMock(),
            dag_ids=[],
            pickle_dags=False,
            async_mode=True,
        )
        mock_processor = MagicMock()
        mock_processor.stop.side_effect = AttributeError("DagFileProcessor object has no attribute stop")
        mock_processor.terminate.side_effect = None
        manager._processors["missing_file.txt"] = mock_processor
        manager._file_stats["missing_file.txt"] = DagFileStat(0, 0, None, None, 0)
        manager.set_file_paths(["abc.txt"])
        assert manager._processors == {}
        assert "missing_file.txt" not in manager._file_stats
    def test_set_file_paths_when_processor_file_path_is_in_new_file_paths(self):