Merge pull request #47 from openstack-charmers/sleep-roundup-1908a
Flag existing time.sleep usage for refactor
This commit is contained in:
@@ -379,6 +379,8 @@ class PerconaClusterScaleTests(PerconaClusterTest):
|
||||
i = 0
|
||||
while i < 10:
|
||||
i += 1
|
||||
# XXX time.sleep roundup
|
||||
# https://github.com/openstack-charmers/zaza-openstack-tests/issues/46
|
||||
time.sleep(5) # give some time to pacemaker to react
|
||||
new_crm_master = self.get_crm_master()
|
||||
|
||||
|
||||
@@ -132,6 +132,8 @@ class VaultTest(BaseVaultTest):
|
||||
try:
|
||||
self.assertTrue(client.hvac_client.is_authenticated())
|
||||
except hvac.exceptions.InternalServerError:
|
||||
# XXX time.sleep roundup
|
||||
# https://github.com/openstack-charmers/zaza-openstack-tests/issues/46
|
||||
time.sleep(2)
|
||||
else:
|
||||
break
|
||||
|
||||
@@ -133,6 +133,8 @@ def is_initialized(client):
|
||||
urllib3.exceptions.NewConnectionError,
|
||||
urllib3.exceptions.MaxRetryError,
|
||||
requests.exceptions.ConnectionError):
|
||||
# XXX time.sleep roundup
|
||||
# https://github.com/openstack-charmers/zaza-openstack-tests/issues/46
|
||||
time.sleep(2)
|
||||
else:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user