mirror of https://github.com/apache/cloudstack.git
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:
parent
13e1f4fc1e
commit
b91978545a
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue