This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new bfa9d144e3 Fix flakey test `TestCliDags.test_trigger_dag_invalid_conf`
(#27088)
bfa9d144e3 is described below
commit bfa9d144e328ca2e3a5c063cb5c4af96e49664c0
Author: Andrey Anshin <[email protected]>
AuthorDate: Mon Oct 24 18:42:24 2022 +0400
Fix flakey test `TestCliDags.test_trigger_dag_invalid_conf` (#27088)
---
tests/cli/commands/test_dag_command.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/cli/commands/test_dag_command.py
b/tests/cli/commands/test_dag_command.py
index bd75fd9a76..b8f073d18d 100644
--- a/tests/cli/commands/test_dag_command.py
+++ b/tests/cli/commands/test_dag_command.py
@@ -59,6 +59,9 @@ class TestCliDags:
clear_db_runs()
clear_db_dags()
+ def setup_method(self):
+ clear_db_runs() # clean-up all dag run before start each test
+
def test_reserialize(self):
# Assert that there are serialized Dags
with create_session() as session: