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)