make sure dependencies get cleaned up after their depenedants

This commit is contained in:
dahn 2020-10-21 09:30:26 +02:00 committed by GitHub
parent 6db6660a0c
commit 6cde21048a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class TestVMWareStoragePolicies(cloudstackTestCase):
def tearDown(self):
try:
self.debug("Cleaning up the resources")
cleanup_resources(self.apiclient, self.cleanup)
cleanup_resources(self.apiclient, reversed(self.cleanup))
self.debug("Cleanup complete!")
except Exception as e:
self.debug("Warning! Exception in tearDown: %s" % e)