mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
queue processor tests: Call consume by default.
This significantly improves the API for queue_json_publish to not be overly focused on what the behavior of this function should be in our unit tests.
This commit is contained in:
@@ -106,7 +106,7 @@ class AdminZulipHandler(logging.Handler):
|
||||
queue_json_publish('error_reports', dict(
|
||||
type = "server",
|
||||
report = report,
|
||||
), lambda x: None, call_consume_in_tests=True)
|
||||
))
|
||||
except Exception:
|
||||
# If this breaks, complain loudly but don't pass the traceback up the stream
|
||||
# However, we *don't* want to use logging.exception since that could trigger a loop.
|
||||
|
||||
Reference in New Issue
Block a user