Skip to content

Commit b7b124f

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "More aggregate functional race chasing"
2 parents 71d8050 + de8ab5e commit b7b124f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

openstackclient/tests/functional/compute/v2/test_aggregate.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,14 @@
2020
class AggregateTests(base.TestCase):
2121
"""Functional tests for aggregate"""
2222

23-
@classmethod
24-
def wait_for_status(cls, check_type, check_name, desired_status,
23+
def wait_for_status(self, check_type, check_name, desired_status,
2524
wait=120, interval=5, failures=None):
2625
current_status = "notset"
2726
if failures is None:
2827
failures = ['error']
2928
total_sleep = 0
3029
while total_sleep < wait:
31-
output = json.loads(cls.openstack(
30+
output = json.loads(self.openstack(
3231
check_type + ' show -f json ' + check_name))
3332
current_status = output['name']
3433
if (current_status == desired_status):
@@ -44,7 +43,7 @@ def wait_for_status(cls, check_type, check_name, desired_status,
4443
.format(current_status, check_type, check_name, failures))
4544
time.sleep(interval)
4645
total_sleep += interval
47-
cls.assertOutput(desired_status, current_status)
46+
self.assertOutput(desired_status, current_status)
4847

4948
def test_aggregate_crud(self):
5049
"""Test create, delete multiple"""
@@ -106,7 +105,6 @@ def test_aggregate_crud(self):
106105
name1
107106
)
108107
self.assertOutput('', raw_output)
109-
self.wait_for_status('aggregate', name3, name3)
110108
self.addCleanup(
111109
self.openstack,
112110
'aggregate delete ' + name3,

0 commit comments

Comments
 (0)