Make StreamLit UI less flaky (#17598)

Co-authored-by: thomas <thomas@thomass-MacBook-Pro.local>
This commit is contained in:
thomas chaton 2023-05-09 20:13:25 +01:00 committed by GitHub
parent c94f1563c4
commit 83f683243d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -135,7 +135,7 @@ jobs:
# TODO: we are testing it as `lightning`, so add also version for `lightning_app`
- bash: |
pip install -e .[test] \
pip install -e .[app-dev] \
-f https://download.pytorch.org/whl/cpu/torch_stable.html
displayName: 'Install Lightning & dependencies'

View File

@ -19,4 +19,5 @@ def test_custom_work_dependencies_example_cloud() -> None:
for log in fetch_logs(["flow"]):
if "Custom Work Dependency checker End" in log:
has_logs = True
print(log)
sleep(1)

View File

@ -30,6 +30,6 @@ def test_template_streamlit_ui_example_cloud() -> None:
has_logs = False
while not has_logs:
for log in fetch_logs():
if "0: Hello World!" in log:
if "Hello World!" in log:
has_logs = True
sleep(1)