mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
handle_missedmessage_emails: Update codepath to queue event on commit.
Earlier, in 'handle_missedmessage_emails' codepath we were using 'queue_json_publish' which can lead to a situation where we enqueue events but the transaction fails at a later stage. Events should not be published until we know we're not rolling back.
This commit is contained in:
committed by
Tim Abbott
parent
f0cbce564d
commit
4bef1a510c
@@ -872,7 +872,8 @@ class PasswordResetTest(ZulipTestCase):
|
||||
|
||||
def reset_password() -> None:
|
||||
# start the password reset process by supplying an email address
|
||||
result = self.client_post("/accounts/password/reset/", {"email": email})
|
||||
with self.captureOnCommitCallbacks(execute=True):
|
||||
result = self.client_post("/accounts/password/reset/", {"email": email})
|
||||
|
||||
# check the redirect link telling you to check mail for password reset link
|
||||
self.assertEqual(result.status_code, 302)
|
||||
|
Reference in New Issue
Block a user