Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change from print to log and a longer timeout in ha tests

  • Loading branch information...
commit c9bfecbc5303e02b51c019e43e0c17cdba189f7d 1 parent 33c3ec5
Patrick Armstrong oldpatricka authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 ion/agents/cei/test/test_haagent.py
5 ion/agents/cei/test/test_haagent.py
View
@@ -178,7 +178,7 @@ def get_new_services(self):
normal = [cserv for cserv in services_registered if cserv.name not in base_names]
return normal
- def await_ha_state(self, want_state, timeout=10):
+ def await_ha_state(self, want_state, timeout=20):
for i in range(0, timeout):
try:
@@ -187,7 +187,8 @@ def await_ha_state(self, want_state, timeout=10):
return
else:
procs = self.get_running_procs()
- print "want state %s, got state %s, with procs %s" % (want_state,status, procs)
+ num_procs = len(procs)
+ log.debug("assert wants state %s, got state %s, with %s procs" % (want_state,status, num_procs))
except Exception:
log.exception("Problem getting HA status, trying again...")
gevent.sleep(1)
Please sign in to comment.
Something went wrong with that request. Please try again.