[Zodb-checkins]
SVN: ZODB/branches/jim-async-client/src/ZEO/tests/CommitLockTests.py
Removed an unused option in WorkerThread.
Jim Fulton
jim at zope.com
Wed Jul 12 18:00:10 EDT 2006
Log message for revision 69106:
Removed an unused option in WorkerThread.
Fixed a typo in a comment.
Changed:
U ZODB/branches/jim-async-client/src/ZEO/tests/CommitLockTests.py
-=-
Modified: ZODB/branches/jim-async-client/src/ZEO/tests/CommitLockTests.py
===================================================================
--- ZODB/branches/jim-async-client/src/ZEO/tests/CommitLockTests.py 2006-07-12 21:46:33 UTC (rev 69105)
+++ ZODB/branches/jim-async-client/src/ZEO/tests/CommitLockTests.py 2006-07-12 22:00:09 UTC (rev 69106)
@@ -35,10 +35,9 @@
# run the entire test in a thread so that the blocking call for
# tpc_vote() doesn't hang the test suite.
- def __init__(self, storage, trans, method="tpc_finish"):
+ def __init__(self, storage, trans):
self.storage = storage
self.trans = trans
- self.method = method
self.ready = threading.Event()
TestThread.__init__(self)
@@ -52,10 +51,7 @@
p = zodb_pickle(MinPO("c"))
self.storage.store(oid, ZERO, p, '', self.trans)
self.myvote()
- if self.method == "tpc_finish":
- self.storage.tpc_finish(self.trans)
- else:
- self.storage.tpc_abort(self.trans)
+ self.storage.tpc_finish(self.trans)
except ClientDisconnected:
pass
@@ -120,7 +116,7 @@
t.start()
t.ready.wait()
- # Close on the connections abnormally to test server response
+ # Close one of the connections abnormally to test server response
if i == 0:
storage.close()
else:
@@ -237,7 +233,6 @@
trans_id = self._get_trans_id()
oid, txn = self._start_txn()
msgid = self._begin_undo(trans_id, txn)
-
self._begin_threads()
self._finish_undo(msgid)
More information about the Zodb-checkins
mailing list