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 efea74110b6ccaa2fef6a5d6f6e84a45e2b0d5bc Author: Utkarsh Sharma <[email protected]> AuthorDate: Wed Sep 4 01:06:09 2024 +0530 Skip database isolation case for task mapping taskinstance tests (#41954) (#41954) * Simpler task retrieval for taskinstance test (#41389) 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) * Skip database isolation case for task mapping taskinstance tests (#41471) Related: #41067 (cherry picked from commit 7718bd7a6ed7fb476e4920315b6d11f1ac465f44) --------- Co-authored-by: Jarek Potiuk <[email protected]> Co-authored-by: Tzu-ping Chung <[email protected]> --- tests/models/test_taskinstance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/models/test_taskinstance.py b/tests/models/test_taskinstance.py index bec0f43ed7..cbd38e9b39 100644 --- a/tests/models/test_taskinstance.py +++ b/tests/models/test_taskinstance.py @@ -1544,6 +1544,7 @@ 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)
