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:
Robert Hönig
2017-11-24 13:18:46 +01:00
committed by Tim Abbott
parent 5e23bfa779
commit 0e0a8a2b14
12 changed files with 22 additions and 38 deletions

View File

@@ -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.