Skip to content

Commit

Permalink
Fix Flaky TriggerDAG UI test (#8022)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxil committed Mar 31, 2020
1 parent 7ab0416 commit ab62211
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/www_rbac/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2107,7 +2107,6 @@ def test_trigger_dag_conf(self):
self.assertIn("manual__", run.run_id)
self.assertEqual(run.conf, conf_dict)

@pytest.mark.xfail(condition=True, reason="This test might be flaky on mysql")
def test_trigger_dag_conf_malformed(self):
test_dag_id = "example_bash_operator"

Expand All @@ -2116,7 +2115,7 @@ def test_trigger_dag_conf_malformed(self):
self.session.commit()

response = self.client.post('trigger?dag_id={}'.format(test_dag_id), data={'conf': '{"a": "b"'})
self.assertEqual(response.status_code, 302)
self.check_content_in_response('Invalid JSON configuration', response)

run = self.session.query(DR).filter(DR.dag_id == test_dag_id).first()
self.assertIsNone(run)
Expand Down

0 comments on commit ab62211

Please sign in to comment.