From 9c2848e81c6fcbb738e96617c5d8a2a5f5f61e74 Mon Sep 17 00:00:00 2001 From: Aarthy Adityan Date: Tue, 12 Nov 2024 19:56:33 -0500 Subject: [PATCH] fix(runs): increase sleep before closing run dialogs --- testgen/ui/views/dialogs/run_profiling_dialog.py | 2 +- testgen/ui/views/dialogs/run_tests_dialog.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testgen/ui/views/dialogs/run_profiling_dialog.py b/testgen/ui/views/dialogs/run_profiling_dialog.py index b39aa15..b1077f8 100644 --- a/testgen/ui/views/dialogs/run_profiling_dialog.py +++ b/testgen/ui/views/dialogs/run_profiling_dialog.py @@ -73,7 +73,7 @@ def run_profiling_dialog(project_code: str, table_group: pd.Series | None = None style="margin-left: auto; border-radius: 4px; border: var(--button-stroked-border); padding: 8px 8px 8px 16px; color: var(--primary-color)", ) else: - time.sleep(1) + time.sleep(2) st.cache_data.clear() st.rerun() diff --git a/testgen/ui/views/dialogs/run_tests_dialog.py b/testgen/ui/views/dialogs/run_tests_dialog.py index 3e46e7b..a5b9eb6 100644 --- a/testgen/ui/views/dialogs/run_tests_dialog.py +++ b/testgen/ui/views/dialogs/run_tests_dialog.py @@ -77,7 +77,7 @@ def run_tests_dialog(project_code: str, test_suite: pd.Series | None = None, def style="margin-left: auto; border-radius: 4px; border: var(--button-stroked-border); padding: 8px 8px 8px 16px; color: var(--primary-color)", ) else: - time.sleep(1) + time.sleep(2) st.cache_data.clear() st.rerun()