Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
eabdaabc
Commit
eabdaabc
authored
Jun 16, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Most-recent cache file is selected by using last tid, so update test.
parent
603312c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/ZEO/tests/testClientCache.py
src/ZEO/tests/testClientCache.py
+2
-0
No files found.
src/ZEO/tests/testClientCache.py
View file @
eabdaabc
...
@@ -333,11 +333,13 @@ class PersistentClientCacheTests(unittest.TestCase):
...
@@ -333,11 +333,13 @@ class PersistentClientCacheTests(unittest.TestCase):
data
=
'1234'
data
=
'1234'
serial
=
'ABCDEFGH'
serial
=
'ABCDEFGH'
cache
.
store
(
oid
,
data
,
serial
,
''
,
''
,
''
)
cache
.
store
(
oid
,
data
,
serial
,
''
,
''
,
''
)
cache
.
setLastTid
(
serial
)
cache
.
checkSize
(
10
*
self
.
cachesize
)
# Force a file flip
cache
.
checkSize
(
10
*
self
.
cachesize
)
# Force a file flip
self
.
assertEqual
(
cache
.
_current
,
1
)
# Check that the flip worked
self
.
assertEqual
(
cache
.
_current
,
1
)
# Check that the flip worked
data
=
'123'
data
=
'123'
serial
=
'ABCDEFGZ'
serial
=
'ABCDEFGZ'
cache
.
store
(
oid
,
data
,
serial
,
''
,
''
,
''
)
cache
.
store
(
oid
,
data
,
serial
,
''
,
''
,
''
)
cache
.
setLastTid
(
serial
)
cache
=
self
.
reopenCache
()
cache
=
self
.
reopenCache
()
loaded
=
cache
.
load
(
oid
,
''
)
loaded
=
cache
.
load
(
oid
,
''
)
# Check that we got the most recent data:
# Check that we got the most recent data:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment