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
a6f5bff4
Commit
a6f5bff4
authored
Jun 12, 2002
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove comments about problems with checkSize() and checkDetail().
parent
cc5ad248
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+3
-10
No files found.
src/ZODB/tests/testCache.py
View file @
a6f5bff4
...
...
@@ -135,9 +135,9 @@ class LRUCacheTests(CacheTestBase):
for
i
in
range
(
dataset_size
):
l
[(
t
,
i
)]
=
r
[
i
]
=
MinPO
(
i
)
get_transaction
().
commit
()
# commit() will register the objects, placing them in the
cache.
#
at the end of commit, the cache will be reduced down to CACHE_SIZE
# items
# commit() will register the objects, placing them in the
#
cache. at the end of commit, the cache will be reduced
#
down to CACHE_SIZE
items
if
len
(
l
)
>
CACHE_SIZE
:
self
.
assertEqual
(
c
.
_cache
.
ringlen
(),
CACHE_SIZE
)
for
i
in
range
(
dataset_size
):
...
...
@@ -156,12 +156,6 @@ class LRUCacheTests(CacheTestBase):
# the root, depending on precise order of access. We do
# 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
(),
[])
...
...
@@ -182,7 +176,6 @@ class LRUCacheTests(CacheTestBase):
# 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
)
...
...
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