From d782927b4c753eda718b7277502a9ca3b6559c8e Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 17 May 2018 09:13:57 -0700 Subject: [PATCH] test_webhooks_common: Add logging for a test flake case. This seems to happen occasionally in CI, and we don't know why. --- zerver/tests/test_webhooks_common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zerver/tests/test_webhooks_common.py b/zerver/tests/test_webhooks_common.py index 3e7806127c..a512815616 100644 --- a/zerver/tests/test_webhooks_common.py +++ b/zerver/tests/test_webhooks_common.py @@ -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)