summaryrefslogtreecommitdiff
path: root/cinderclient
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-07-28 10:05:03 +0000
committerGerrit Code Review <review@openstack.org>2017-07-28 10:05:03 +0000
commit130397a12870c6c9495c0da477b93b59ba628dbb (patch)
treec4218d70400844d6cf4835bc3d79de969fa2862d /cinderclient
parent99bb6f3ecb1f3c883c50bf715618e64b145257b2 (diff)
parentafa10404bc6d94596b1b9c3c69d85c46e67b2d34 (diff)
downloadpython-cinderclient-130397a12870c6c9495c0da477b93b59ba628dbb.tar.gz
Merge "[Optimize] Adds interval and increase waiting time"
Diffstat (limited to 'cinderclient')
-rw-r--r--cinderclient/tests/functional/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cinderclient/tests/functional/base.py b/cinderclient/tests/functional/base.py
index cff88c0..349bd1e 100644
--- a/cinderclient/tests/functional/base.py
+++ b/cinderclient/tests/functional/base.py
@@ -108,7 +108,7 @@ class ClientTestBase(base.ClientTestBase):
return (object_name + '-' + cmd if object_name != 'volume' else cmd)
def wait_for_object_status(self, object_name, object_id, status,
- timeout=60):
+ timeout=120, interval=3):
"""Wait until object reaches given status.
:param object_name: object name
@@ -121,6 +121,7 @@ class ClientTestBase(base.ClientTestBase):
while time.time() - start_time < timeout:
if status in self.cinder(cmd, params=object_id):
break
+ time.sleep(interval)
else:
self.fail("%s %s did not reach status %s after %d seconds."
% (object_name, object_id, status, timeout))