Skip to content

Commit 716abc9

Browse files
tchatonthomas
authored andcommitted
[App] update app testing (#16000)
Co-authored-by: thomas <[email protected]> (cherry picked from commit 8b68e20)
1 parent 2376960 commit 716abc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lightning_app/testing/testing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,12 +488,12 @@ def wait_for(page, callback: Callable, *args, **kwargs) -> Any:
488488
except (playwright._impl._api_types.Error, playwright._impl._api_types.TimeoutError) as e:
489489
print(e)
490490
try:
491-
sleep(5)
491+
sleep(7)
492492
page.reload()
493493
except (playwright._impl._api_types.Error, playwright._impl._api_types.TimeoutError) as e:
494494
print(e)
495495
pass
496-
sleep(2)
496+
sleep(3)
497497

498498

499499
def _delete_lightning_app(client, project_id, app_id, app_name):

tests/tests_examples_app/public/test_boring_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@pytest.mark.cloud
1212
def test_boring_app_example_cloud() -> None:
13-
with run_app_in_cloud(os.path.join(_PATH_EXAMPLES, "app_boring"), app_name="app_dynamic.py", debug=True,) as (
13+
with run_app_in_cloud(os.path.join(_PATH_EXAMPLES, "app_boring"), app_name="app_dynamic.py", debug=True) as (
1414
_,
1515
view_page,
1616
_,

0 commit comments

Comments
 (0)