From aebbac7285efe7efb951231d543009f36cd7e197 Mon Sep 17 00:00:00 2001 From: Timothyxxx <384084775@qq.com> Date: Thu, 25 Apr 2024 15:53:12 +0800 Subject: [PATCH] Increase the waiting time for vm setup --- desktop_env/envs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_env/envs/__init__.py b/desktop_env/envs/__init__.py index 3dd509c..065ff3e 100644 --- a/desktop_env/envs/__init__.py +++ b/desktop_env/envs/__init__.py @@ -296,7 +296,7 @@ def _install_virtual_machine(vm_name, working_dir="./vm_data", downloaded_file_n url = f"http://{ip}:5000/screenshot" try: # max trey times 1, max timeout 1 - response = requests.get(url, timeout=(1, 1)) + response = requests.get(url, timeout=(10, 10)) if response.status_code == 200: return True except Exception as e: