mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Deliver messages inside Tornado when running tests
This saves us from having to run queue processors while testing. (imported from commit 927bfa497a47b34603761a148c57d82b2f34f813)
This commit is contained in:
@@ -456,7 +456,7 @@ def process_notification(data):
|
||||
# different types and for compatibility with non-HTTP transports.
|
||||
|
||||
def send_notification_http(data):
|
||||
if settings.TORNADO_SERVER:
|
||||
if settings.TORNADO_SERVER and not settings.RUNNING_INSIDE_TORNADO:
|
||||
requests.post(settings.TORNADO_SERVER + '/notify_tornado', data=dict(
|
||||
data = ujson.dumps(data),
|
||||
secret = settings.SHARED_SECRET))
|
||||
|
||||
Reference in New Issue
Block a user