Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
e1e996a8
Commit
e1e996a8
authored
May 25, 2002
by
Toby Dickenson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comment about intermittant failures in checkSize and checkDetail
parent
07bb99c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
src/ZODB/tests/testCache.py
src/ZODB/tests/testCache.py
+7
-0
No files found.
src/ZODB/tests/testCache.py
View file @
e1e996a8
...
@@ -160,6 +160,12 @@ class LRUCacheTests(CacheTestBase):
...
@@ -160,6 +160,12 @@ class LRUCacheTests(CacheTestBase):
# the root, depending on precise order of access. We do
# the root, depending on precise order of access. We do
# not bother to check this
# 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
):
def
checkSize
(
self
):
self
.
assertEqual
(
self
.
db
.
cacheSize
(),
0
)
self
.
assertEqual
(
self
.
db
.
cacheSize
(),
0
)
self
.
assertEqual
(
self
.
db
.
cacheDetailSize
(),
[])
self
.
assertEqual
(
self
.
db
.
cacheDetailSize
(),
[])
...
@@ -180,6 +186,7 @@ class LRUCacheTests(CacheTestBase):
...
@@ -180,6 +186,7 @@ class LRUCacheTests(CacheTestBase):
# the connection holds a reference to it
# the connection holds a reference to it
self
.
assertEquals
(
d
[
'size'
],
CACHE_SIZE
+
1
)
self
.
assertEquals
(
d
[
'size'
],
CACHE_SIZE
+
1
)
# checkDetail is a bad test. See checkSize for more details
def
checkDetail
(
self
):
def
checkDetail
(
self
):
CACHE_SIZE
=
10
CACHE_SIZE
=
10
self
.
db
.
setCacheSize
(
CACHE_SIZE
)
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