xBis7 commented on code in PR #63932:
URL: https://github.com/apache/airflow/pull/63932#discussion_r3154928708


##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -436,8 +436,10 @@ def test_only_idle_with_dag_exits_after_n_idle_runs(self, 
caplog, dag_maker, ses
         assert total_runs_val > idle_runs_val, "Some runs should not be idle"
 
     @mock.patch("airflow.jobs.scheduler_job_runner.TaskCallbackRequest")
-    @mock.patch("airflow.jobs.scheduler_job_runner.Stats.incr")
-    def test_process_executor_events(self, mock_stats_incr, 
mock_task_callback, dag_maker):
+    @mock.patch("airflow._shared.observability.metrics.stats._get_backend")
+    def test_process_executor_events(self, mock_get_backend, 
mock_task_callback, dag_maker):
+        mock_stats = mock.MagicMock()

Review Comment:
   Fixed. Also updated occurrences in other files.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to