uranusjr commented on code in PR #41390:
URL: https://github.com/apache/airflow/pull/41390#discussion_r1713558796


##########
tests/api_experimental/common/test_mark_tasks.py:
##########
@@ -769,8 +742,6 @@ def test_set_state_with_multiple_dagruns(self, 
session=None):
         # Recursively count number of tasks in the dag
         def count_dag_tasks(dag):
             count = len(dag.tasks)
-            subdag_counts = [count_dag_tasks(subdag) for subdag in dag.subdags]
-            count += sum(subdag_counts)
             return count
 
         assert len(altered) == count_dag_tasks(self.dag2)

Review Comment:
   This should just be `assert len(altered) == len(self.dag2.tasks)`



-- 
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