Skip to content

Automate browser based workflows with AI

Drop the wall-clock bound from the download-drain timeout test (#8458)

Shuchang Zheng84d634421475
diff --git a/tests/unit/test_agent_cleanup_download_suffix.py b/tests/unit/test_agent_cleanup_download_suffix.py
index f889e7ad4..4f7d3ee5d 100644
--- a/tests/unit/test_agent_cleanup_download_suffix.py
+++ b/tests/unit/test_agent_cleanup_download_suffix.py
@@ -310,7 +310,6 @@ async def test_cleanup_timeout_bounds_browser_download_handler_drain() -> None:
browser_state = MagicMock(browser_context=browser_context)
finalize = AsyncMock()
save = AsyncMock()
- started_at = asyncio.get_running_loop().time()
with (
patch("skyvern.forge.agent.SAVE_DOWNLOADED_FILES_TIMEOUT", 0.01),
@@ -333,7 +332,6 @@ async def test_cleanup_timeout_bounds_browser_download_handler_drain() -> None:
timeout=0.5,
)
- assert asyncio.get_running_loop().time() - started_at < 0.2
finalize.assert_not_awaited()
save.assert_not_awaited()