mock_pid.return_value = 1234
        mock_waitable_handle.return_value = 3
        manager = DagFileProcessorManager(
            dag_directory="directory",
            max_runs=1,
            processor_timeout=timedelta(seconds=5),
            signal_conn=MagicMock(),
            dag_ids=[],
            pickle_dags=False,
            async_mode=True,
        )
        processor = DagFileProcessorProcess(
            file_path="abc.txt",
            pickle_dags=False,
            dag_ids=[],
            dag_directory=TEST_DAG_FOLDER,
            callback_requests=[],
        )
        processor._start_time = timezone.make_aware(datetime.min)
        manager._processors = {"abc.txt": processor}
        manager.waitables[3] = processor
        initial_waitables = len(manager.waitables)
        manager._kill_timed_out_processors()
        mock_kill.assert_called_once_with()
        assert len(manager._processors) == 0
        assert len(manager.waitables) == initial_waitables - 1
    @mock.patch("airflow.dag_processing.processor.DagFileProcessorProcess.pid", new_callable=PropertyMock)
    @mock.patch("airflow.dag_processing.processor.DagFileProcessorProcess")
    def test_kill_timed_out_processors_no_kill(self, mock_dag_file_processor, mock_pid):