You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/30 14:25:02 UTC

[GitHub] [airflow] jedcunningham commented on a change in pull request #18618: Fix flaky test `test_set_dag_runs_action`

jedcunningham commented on a change in pull request #18618:
URL: https://github.com/apache/airflow/pull/18618#discussion_r719461671



##########
File path: tests/www/views/test_views_dagrun.py
##########
@@ -162,7 +162,7 @@ def test_set_dag_runs_action(
         follow_redirects=True,
     )
     check_content_in_response(expected_message, resp)
-    assert [ti.state for ti in session.query(TaskInstance).all()] == expected_ti_states
+    assert {ti.state for ti in session.query(TaskInstance).all()} == set(expected_ti_states)

Review comment:
       Yeah good call, thanks.




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org