Commit ad2ba5d4 authored by Jeremy Hylton's avatar Jeremy Hylton

Make tests robust against threads that never give up.

parent a2e1aa3a
......@@ -24,6 +24,7 @@ class ZODBClientThread(threading.Thread):
def __init__(self, db, test, commits=10, delay=SHORT_DELAY):
self.__super_init()
self.setDaemon(1)
self.db = db
self.test = test
self.commits = commits
......@@ -169,7 +170,9 @@ class MTStorage:
for t in threads:
t.start()
for t in threads:
t.join()
t.join(10)
for t in threads:
self.failIf(t.isAlive())
def check2ZODBThreads(self):
db = ZODB.DB(self._storage)
......
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