test_retention: Add print-debugging.

We've been seeing nondeterministic failures in this test suite in CI
that we can't reproduce locally; these print statements should help
track them down.
This commit is contained in:
Tim Abbott 2019-05-20 19:43:28 -07:00
parent 58da8fd5f1
commit 1353e94b29
1 changed files with 4 additions and 0 deletions

View File

@ -267,6 +267,10 @@ class TestRetentionLib(ZulipTestCase):
msgs_qty = Message.objects.count()
archive_messages()
# Temporary debugging code while we investigate CI failures
print(expected_message_ids)
print(ArchivedMessage.objects.all())
# Compare archived messages and user messages with expired messages
self.assertEqual(ArchivedMessage.objects.count(), len(expected_message_ids))
self.assertEqual(ArchivedUserMessage.objects.count(), len(expected_user_msgs_ids))