Skip to content

Commit b919785

Browse files
author
Prasanna Santhanam
committed
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>
1 parent 13e1f4f commit b919785

1 file changed

Lines changed: 1 addition & 19 deletions

File tree

test/integration/component/test_vpc.py

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -224,25 +224,7 @@ def setUp(self):
224224
admin=True,
225225
domainid=self.domain.id
226226
)
227-
self.cleanup = [self.account]
228-
return
229-
230-
def tearDown(self):
231-
try:
232-
#Clean up, terminate the created network offerings
233-
cleanup_resources(self.apiclient, self.cleanup)
234-
interval = list_configurations(
235-
self.apiclient,
236-
name='network.gc.interval'
237-
)
238-
wait = list_configurations(
239-
self.apiclient,
240-
name='network.gc.wait'
241-
)
242-
# Sleep to ensure that all resources are deleted
243-
time.sleep(int(interval[0].value) + int(wait[0].value))
244-
except Exception as e:
245-
raise Exception("Warning: Exception during cleanup : %s" % e)
227+
self._cleanup.insert(0, self.account)
246228
return
247229

248230
def validate_vpc_offering(self, vpc_offering):

0 commit comments

Comments
 (0)