mirror of https://github.com/zulip/zulip.git
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:
parent
58da8fd5f1
commit
1353e94b29
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue