Increase the waiting time for vm setup
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user