[FIX] database_cleanup: TransactionCase already does rollback

No need to rollback here as TransactionCase does a safe rollback.
pull/2684/head
Miika Nissi 2023-12-28 17:26:27 -05:00
parent 8d364c3afc
commit 62885e310d
No known key found for this signature in database
GPG Key ID: B20DC9FCFAF92E7F
1 changed files with 0 additions and 7 deletions

View File

@ -12,10 +12,3 @@ class Common(TransactionCase):
# we also need the original registry for further tests, so save a
# reference to it
self.original_registry = Registry.registries[self.env.cr.dbname]
def tearDown(self):
super(Common, self).tearDown()
# Force rollback to avoid unstable test database
self.env.cr.rollback()
# reset afterwards
Registry.registries[self.env.cr.dbname] = self.original_registry