kaxil commented on a change in pull request #9973:
URL: https://github.com/apache/airflow/pull/9973#discussion_r614172532
##########
File path: tests/models/test_taskinstance.py
##########
@@ -2109,8 +2116,12 @@ def test_execute_queries_count_store_serialized(self):
run_type=DagRunType.SCHEDULED,
session=session,
)
-
- with assert_queries_count(10):
+ # an extra query is fired in
RenderedTaskInstanceFields.delete_old_records
+ # for other DBs
+ expected_query_count_based_on_db = (11, 10)[
+ session.bind.dialect.name in ["postgresql", "sqlite", "mysql"]
+ ]
Review comment:
should use similar logic as above -- looks cleaner
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]