[Zodb-checkins] CVS: ZODB3/ZEO/tests - ThreadTests.py:1.5.2.1
Barry Warsaw
barry@wooz.org
Mon, 20 Jan 2003 15:58:52 -0500
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv20501
Modified Files:
Tag: ZODB3-3_1-branch
ThreadTests.py
Log Message:
checkThatFailedBeginDoesNotHaveLock(): Backported from the 3.2 trunk,
this test isn't testing anything useful now that we have the
backported fix to ClientServer's tpc_abort(). Remove it.
=== ZODB3/ZEO/tests/ThreadTests.py 1.5 => 1.5.2.1 ===
--- ZODB3/ZEO/tests/ThreadTests.py:1.5 Thu Oct 3 13:47:50 2002
+++ ZODB3/ZEO/tests/ThreadTests.py Mon Jan 20 15:58:49 2003
@@ -128,24 +128,6 @@
self.assertEqual(thread1.gotValueError, 1)
self.assertEqual(thread2.gotValueError, 1)
- def checkThatFailedBeginDoesNotHaveLock(self):
- doNextEvent = threading.Event()
- threadStartedEvent = threading.Event()
- thread1 = GetsThroughVoteThread(self._storage,
- doNextEvent, threadStartedEvent)
- thread2 = AbortsAfterBeginFailsThread(self._storage,
- doNextEvent, threadStartedEvent)
- thread1.start()
- threadStartedEvent.wait(1)
- thread2.start()
- self._storage.close()
- doNextEvent.set()
- thread1.join()
- thread2.join()
- self.assertEqual(thread1.gotValueError, 1)
- self.assertEqual(thread2.gotValueError, 1)
- self.assertEqual(thread2.gotDisconnected, 1)
-
# Run a bunch of threads doing small and large stores in parallel
def checkMTStores(self):
threads = []