Skip to content

Commit

Permalink
[AIRFLOW-5740] Fix Transient failure in Slack test (#6407)
Browse files Browse the repository at this point in the history
* [AIRFLOW-5740] Fix Transient failure in Slack test

The transient failure is caused by Dict Ordering

* We were comparing string

We were comparing strings

(cherry picked from commit 401003e)
  • Loading branch information
kaxil committed Dec 14, 2019
1 parent d48b2f3 commit b484f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/contrib/hooks/test_slack_webhook_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def test_build_slack_message(self):
message = hook._build_slack_message()

# Then
self.assertEqual(self.expected_message, message)
self.assertEqual(self.expected_message_dict, json.loads(message))

@mock.patch('requests.Session')
@mock.patch('requests.Request')
Expand Down

0 comments on commit b484f58

Please sign in to comment.