[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - testCache.py:1.6

Toby Dickenson tdickenson@geminidataloggers.com
Sat, 25 May 2002 15:50:58 -0400


Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv2746

Modified Files:
	testCache.py 
Log Message:
add comment about intermittant failures in checkSize and checkDetail

=== Zope/lib/python/ZODB/tests/testCache.py 1.5 => 1.6 ===
             # not bother to check this
 
+
+    # checkSize and checkDetail are bad tests. They rely on 
+    # several different types of non-deterministic behavior
+    # in noodle_new_connection. Both tests pass most of the
+    # time, but do fail intermittantly.
+    # Toby Dickenson promised to improve this
     def checkSize(self):
         self.assertEqual(self.db.cacheSize(), 0)
         self.assertEqual(self.db.cacheDetailSize(), [])
@@ -180,6 +186,7 @@
             # the connection holds a reference to it
             self.assertEquals(d['size'], CACHE_SIZE + 1)
 
+    # checkDetail is a bad test. See checkSize for more details
     def checkDetail(self):
         CACHE_SIZE = 10
         self.db.setCacheSize(CACHE_SIZE)