test_webhooks_common: Add logging for a test flake case.

This seems to happen occasionally in CI, and we don't know why.
This commit is contained in:
Tim Abbott
2018-05-17 09:13:57 -07:00
parent a422165662
commit d782927b4c

View File

@@ -67,6 +67,10 @@ class MissingEventHeaderTestCase(WebhookTestCase):
integration_name='Groove',
support_email=FromAddress.SUPPORT
).rstrip()
if msg.sender.email != notification_bot.email: # nocoverage
# This block seems to fire occasionally; debug output:
print(msg)
print(msg.content)
self.assertEqual(msg.sender.email, notification_bot.email)
self.assertEqual(msg.content, expected_message)