populate_db: Add support for creating messages older than 5 days ago.

Fixes #21646.
This commit is contained in:
evykassirer
2022-04-04 15:16:17 -07:00
committed by Tim Abbott
parent 6e831db55b
commit e4c51488c0
2 changed files with 27 additions and 10 deletions

View File

@@ -13,7 +13,7 @@ class TestChoosePubDate(ZulipTestCase):
"""
tot_messages = 1000000
datetimes_list = [
choose_date_sent(i, tot_messages, 1)
choose_date_sent(i, tot_messages, 5, 1)
for i in range(1, tot_messages, tot_messages // 100)
]