From 716abc9307c42405914271989055f31b8226d0b2 Mon Sep 17 00:00:00 2001 From: thomas chaton Date: Tue, 20 Dec 2022 06:31:22 +0100 Subject: [PATCH] [App] update app testing (#16000) Co-authored-by: thomas (cherry picked from commit 8b68e201d9783797a10b4875314aada8a5210bc5) --- src/lightning_app/testing/testing.py | 4 ++-- tests/tests_examples_app/public/test_boring_app.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lightning_app/testing/testing.py b/src/lightning_app/testing/testing.py index 40b705458dd49..0c73f79b59822 100644 --- a/src/lightning_app/testing/testing.py +++ b/src/lightning_app/testing/testing.py @@ -488,12 +488,12 @@ def wait_for(page, callback: Callable, *args, **kwargs) -> Any: except (playwright._impl._api_types.Error, playwright._impl._api_types.TimeoutError) as e: print(e) try: - sleep(5) + sleep(7) page.reload() except (playwright._impl._api_types.Error, playwright._impl._api_types.TimeoutError) as e: print(e) pass - sleep(2) + sleep(3) def _delete_lightning_app(client, project_id, app_id, app_name): diff --git a/tests/tests_examples_app/public/test_boring_app.py b/tests/tests_examples_app/public/test_boring_app.py index a5177d0a18062..80be34745a1de 100644 --- a/tests/tests_examples_app/public/test_boring_app.py +++ b/tests/tests_examples_app/public/test_boring_app.py @@ -10,7 +10,7 @@ @pytest.mark.cloud def test_boring_app_example_cloud() -> None: - with run_app_in_cloud(os.path.join(_PATH_EXAMPLES, "app_boring"), app_name="app_dynamic.py", debug=True,) as ( + with run_app_in_cloud(os.path.join(_PATH_EXAMPLES, "app_boring"), app_name="app_dynamic.py", debug=True) as ( _, view_page, _,