Commit 61af5586 authored by Jim Fulton's avatar Jim Fulton Committed by GitHub

Merge pull request #90 from zopefoundation/fix-testMinimizeTerminates

Fix testMinimizeTerminates
parents 5fa51838 f4e9202f
......@@ -142,6 +142,13 @@ class DBMethods(CacheTestBase):
# isn't looking out for this, it can get into an infinite loop
# then, endlessly trying to ghostify an object that in turn keeps
# unghostifying itself again.
# This test uses threads, so we can't use the default
# transaction manager.
for conn in self.conns:
conn.close()
self.conns[0] = self.db.open(transaction.TransactionManager())
class Worker(threading.Thread):
def __init__(self, testcase):
......@@ -158,7 +165,7 @@ class DBMethods(CacheTestBase):
d = r[1]
for i in range(len(d)):
d[i] = CantGetRidOfMe(i)
transaction.commit()
conn.transaction_manager.commit()
self.testcase.db.cacheMinimize()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment