Skip to content

Commit

Permalink
toto
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamreis committed Sep 28, 2023
1 parent 5b7b70d commit 5a4cf09
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def setup_host(hostname_or_ip):
h.xo_server_add(h.user, h.password)
else:
h.xo_get_server_id(store=True)
wait_for(h.xo_server_connected, timeout_secs=100)
wait_for(h.xo_server_connected, timeout_secs=10)
return h

@pytest.fixture(scope='session')
Expand Down
3 changes: 1 addition & 2 deletions lib/common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import getpass
import inspect
import logging
import socket
import time
import traceback
from enum import Enum
Expand Down Expand Up @@ -30,7 +29,7 @@ def prefix_object_name(label):
name_prefix = f"[{getpass.getuser()}]"
return f"{name_prefix} {label}"

def wait_for(fn, msg=None, timeout_secs=500, retry_delay_secs=2, invert=False):
def wait_for(fn, msg=None, timeout_secs=120, retry_delay_secs=2, invert=False):
if msg is not None:
logging.info(msg)
time_left = timeout_secs
Expand Down
1 change: 0 additions & 1 deletion lib/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def xo_server_status(self):
servers = xo_cli('server.getAll', use_json=True)
for server in servers:
if server['host'] == wrap_ip(self.hostname_or_ip):
logging.info("*** BRS: %s" % server['status'])
return server['status']
return None

Expand Down

0 comments on commit 5a4cf09

Please sign in to comment.