From a96ca432fb8e5b85ab314787b62a62bb79814212 Mon Sep 17 00:00:00 2001 From: CopyDemon Date: Wed, 23 Oct 2024 14:51:15 -0700 Subject: [PATCH] max timeout 30s or it doesn't make sense --- idaes_ui/fv/fsvis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idaes_ui/fv/fsvis.py b/idaes_ui/fv/fsvis.py index cd795bf..bf3a801 100644 --- a/idaes_ui/fv/fsvis.py +++ b/idaes_ui/fv/fsvis.py @@ -417,7 +417,7 @@ async def _async_save_diagram( async with async_playwright() as p: browser = await p.chromium.launch( - headless=True, args=["--no-sandbox"], timeout=500000 + headless=True, args=["--no-sandbox"], timeout=3000000 ) context = await browser.new_context(viewport={"width": 1920, "height": 1080}) page = await context.new_page() @@ -438,7 +438,7 @@ async def _async_save_diagram( # Click download btn on UI pop modal async with page.expect_download() as download_info: - await page.click(".control-button", timeout=6000000) + await page.click(".control-button", timeout=3000000) # Get download value download = await download_info.value