[Zodb-checkins] CVS: ZODB3/ZEO/tests - testClientCache.py:1.9
Jeremy Hylton
jeremy at zope.com
Mon Jun 16 15:50:06 EDT 2003
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv31600
Modified Files:
testClientCache.py
Log Message:
Most-recent cache file is selected by using last tid, so update test.
=== ZODB3/ZEO/tests/testClientCache.py 1.8 => 1.9 ===
--- ZODB3/ZEO/tests/testClientCache.py:1.8 Tue Jun 10 13:08:10 2003
+++ ZODB3/ZEO/tests/testClientCache.py Mon Jun 16 14:50:06 2003
@@ -333,11 +333,13 @@
data = '1234'
serial = 'ABCDEFGH'
cache.store(oid, data, serial, '', '', '')
+ cache.setLastTid(serial)
cache.checkSize(10*self.cachesize) # Force a file flip
self.assertEqual(cache._current, 1) # Check that the flip worked
data = '123'
serial = 'ABCDEFGZ'
cache.store(oid, data, serial, '', '', '')
+ cache.setLastTid(serial)
cache = self.reopenCache()
loaded = cache.load(oid, '')
# Check that we got the most recent data:
More information about the Zodb-checkins
mailing list