mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
timeout: Rename to unsafe_timeout.
This timeout strategy using asynchronous exceptions has a number of
safety caveats (read the docstring!!) and should only be used in very
specific circumstances.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 72018cc26b)
This commit is contained in:
committed by
Alex Vandiver
parent
607defeba7
commit
b4f67e85b5
@@ -1543,7 +1543,7 @@ Output:
|
||||
markdown.__init__.do_convert.
|
||||
"""
|
||||
with mock.patch(
|
||||
"zerver.lib.markdown.timeout", side_effect=subprocess.CalledProcessError(1, [])
|
||||
"zerver.lib.markdown.unsafe_timeout", side_effect=subprocess.CalledProcessError(1, [])
|
||||
), self.assertLogs(level="ERROR"): # For markdown_logger.exception
|
||||
yield
|
||||
|
||||
|
||||
Reference in New Issue
Block a user