mirror of https://github.com/zulip/zulip.git
invites: Call confirmation worker consumer in tests.
This makes the automated tests for this queue publish more faithful.
This commit is contained in:
parent
3264e4f24a
commit
1698f979d0
|
@ -3690,7 +3690,8 @@ def do_invite_users(user_profile, invitee_emails, streams, body=None):
|
|||
|
||||
event = {"email": prereg_user.email, "referrer_id": user_profile.id, "email_body": body}
|
||||
queue_json_publish("invites", event,
|
||||
lambda event: do_send_confirmation_email(prereg_user, user_profile, body))
|
||||
lambda event: None,
|
||||
call_consume_in_tests=True)
|
||||
|
||||
if skipped:
|
||||
raise InvitationError(_("Some of those addresses are already using Zulip, "
|
||||
|
|
Loading…
Reference in New Issue