Skip to content

Commit

Permalink
[App] update app testing (#16000)
Browse files Browse the repository at this point in the history
Co-authored-by: thomas <thomas@thomass-MacBook-Pro.local>
(cherry picked from commit 8b68e20)
  • Loading branch information
tchaton authored and Borda committed Dec 20, 2022
1 parent 2376960 commit 716abc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lightning_app/testing/testing.py
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_examples_app/public/test_boring_app.py
Expand Up @@ -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,
_,
Expand Down

0 comments on commit 716abc9

Please sign in to comment.