From b91978545acd2513754e20b7dfabcbf4b745dd0a Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Wed, 19 Jun 2013 15:16:45 +0530 Subject: [PATCH] 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 --- test/integration/component/test_vpc.py | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/test/integration/component/test_vpc.py b/test/integration/component/test_vpc.py index cc7069533db..742f6ae11eb 100644 --- a/test/integration/component/test_vpc.py +++ b/test/integration/component/test_vpc.py @@ -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):