This is an automated email from the ASF dual-hosted git repository. ephraimanierobi pushed a commit to branch sync_v2_10_test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit cc0647c0c0a97aa42a193add73c6cd0248e5e256 Author: Ephraim Anierobi <splendidzig...@gmail.com> AuthorDate: Mon Sep 2 14:05:28 2024 +0100 Simpler task retrieval for taskinstance test (#41389) (#41953) The test has been updated for DB isolation but the retrieval of task was not intuitive and it could lead to flaky tests possibly (cherry picked from commit f25adf14ad486bac818fe3fdcd61eb3355e8ec9b) Co-authored-by: Jarek Potiuk <ja...@potiuk.com> --- tests/models/test_taskinstance.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/models/test_taskinstance.py b/tests/models/test_taskinstance.py index cbd38e9b39..bec0f43ed7 100644 --- a/tests/models/test_taskinstance.py +++ b/tests/models/test_taskinstance.py @@ -1544,7 +1544,6 @@ class TestTaskInstance: ti = dr.get_task_instance("do_something_else", session=session) ti.map_index = 0 base_task = ti.task - for map_index in range(1, 5): ti = TaskInstance(base_task, run_id=dr.run_id, map_index=map_index) session.add(ti)