Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

increase retries for flakey test (#7773)

Shahmir Varqha835ece3390e1
diff --git a/tests/_server/export/test_exporter.py b/tests/_server/export/test_exporter.py
index aff097b45e..7c3da0ec0a 100644
--- a/tests/_server/export/test_exporter.py
+++ b/tests/_server/export/test_exporter.py
@@ -449,6 +449,7 @@ def _delete_lines_with_files(output: str) -> str:
return "\n".join(remove_file_name(line) for line in output.splitlines())
@patch("marimo._server.export.echo")
async def test_run_until_completion_with_console_output(mock_echo: MagicMock):
app = App()
@@ -482,8 +483,10 @@ async def test_run_until_completion_with_console_output(mock_echo: MagicMock):
mock_echo.assert_any_call("hello stdout", file=ANY, nl=False)
mock_echo.assert_any_call("hello stderr", file=ANY, nl=False)
+ # Console output notifications arrive asynchronously after CompletedRun.
+ # In slow CI environments, we need to wait longer for all notifications.
n_tries = 0
- limit = 10
+ limit = 50
while n_tries <= limit:
try:
_assert_contents()