Increase the waiting time for vm setup

This commit is contained in:
Timothyxxx
2024-04-25 15:53:12 +08:00
parent 80d6f4d598
commit aebbac7285

View File

@@ -296,7 +296,7 @@ def _install_virtual_machine(vm_name, working_dir="./vm_data", downloaded_file_n
url = f"http://{ip}:5000/screenshot" url = f"http://{ip}:5000/screenshot"
try: try:
# max trey times 1, max timeout 1 # 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: if response.status_code == 200:
return True return True
except Exception as e: except Exception as e: