[Zodb-checkins] CVS: ZODB/src/ZODB/tests - PackableStorage.py:1.37

Tim Peters tim.one at comcast.net
Wed Mar 17 14:10:41 EST 2004


Update of /cvs-repository/ZODB/src/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv2409/src/ZODB/tests

Modified Files:
	PackableStorage.py 
Log Message:
checkPackLotsWhileWriting:  remove excess generality.  Only one client
thread is interesting here, so removed the hair catering to the possiblity
of N > 1 threads.


=== ZODB/src/ZODB/tests/PackableStorage.py 1.36 => 1.37 ===
--- ZODB/src/ZODB/tests/PackableStorage.py:1.36	Tue Mar 16 18:51:07 2004
+++ ZODB/src/ZODB/tests/PackableStorage.py	Wed Mar 17 14:10:40 2004
@@ -286,18 +286,13 @@
 
         NUM_LOOP_TRIP = 100
         timer = ElapsedTimer(time.time())
-        threads = [ClientThread(db, choices, NUM_LOOP_TRIP, timer, i)
-                   for i in range(1)]
-        for t in threads:
-            t.start()
-
-        while True in [t.isAlive() for t in threads]:
+        thread = ClientThread(db, choices, NUM_LOOP_TRIP, timer, 0)
+        thread.start()
+        while thread.isAlive():
             db.pack(packt)
             snooze()
             packt = time.time()
-
-        for t in threads:
-            t.join()
+        thread.join()
 
         # Iterate over the storage to make sure it's sane.
         if not hasattr(self._storage, "iterator"):




More information about the Zodb-checkins mailing list