Don't wait for account gc

Account GC is automatic, it's not required to wait for cleanup in the
tearDown method

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-06-19 15:16:45 +05:30
parent 13e1f4fc1e
commit b91978545a
1 changed files with 1 additions and 19 deletions

View File

@ -224,25 +224,7 @@ class TestVPC(cloudstackTestCase):
admin=True,
domainid=self.domain.id
)
self.cleanup = [self.account]
return
def tearDown(self):
try:
#Clean up, terminate the created network offerings
cleanup_resources(self.apiclient, self.cleanup)
interval = list_configurations(
self.apiclient,
name='network.gc.interval'
)
wait = list_configurations(
self.apiclient,
name='network.gc.wait'
)
# Sleep to ensure that all resources are deleted
time.sleep(int(interval[0].value) + int(wait[0].value))
except Exception as e:
raise Exception("Warning: Exception during cleanup : %s" % e)
self._cleanup.insert(0, self.account)
return
def validate_vpc_offering(self, vpc_offering):