Merge pull request #47 from openstack-charmers/sleep-roundup-1908a

Flag existing time.sleep usage for refactor
This commit is contained in:
David Ames
2019-08-30 13:50:38 -07:00
committed by GitHub
3 changed files with 6 additions and 0 deletions

View File

@@ -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()

View File

@@ -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

View File

@@ -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