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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
8878e072
Commit
8878e072
authored
Dec 12, 2008
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the interaction of ClientStorage.verify_cache and connection
tests more precise to aid test debugging.
parent
b7595695
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/ZEO/ClientStorage.py
src/ZEO/ClientStorage.py
+1
-1
src/ZEO/tests/ConnectionTests.py
src/ZEO/tests/ConnectionTests.py
+7
-7
No files found.
src/ZEO/ClientStorage.py
View file @
8878e072
...
...
@@ -1316,7 +1316,7 @@ class ClientStorage(object):
if
ltid
and
ltid
!=
utils
.
z64
:
self
.
_cache
.
setLastTid
(
ltid
)
self
.
finish_verification
()
return
"
full verification
"
return
"
empty cache
"
last_inval_tid
=
self
.
_cache
.
getLastTid
()
if
last_inval_tid
is
not
None
:
...
...
src/ZEO/tests/ConnectionTests.py
View file @
8878e072
...
...
@@ -593,14 +593,14 @@ class InvqTests(CommonSetupTearDown):
def
checkQuickVerificationWith2Clients
(
self
):
perstorage
=
self
.
openClientStorage
(
cache
=
"test"
)
self
.
assertEqual
(
perstorage
.
verify_result
,
"
full verification
"
)
self
.
assertEqual
(
perstorage
.
verify_result
,
"
empty cache
"
)
self
.
_storage
=
self
.
openClientStorage
()
oid
=
self
.
_storage
.
new_oid
()
oid2
=
self
.
_storage
.
new_oid
()
# When we create a new storage, it should always do a full
# verification
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
full verification
"
)
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
empty cache
"
)
# do two storages of the object to make sure an invalidation
# message is generated
revid
=
self
.
_dostore
(
oid
)
...
...
@@ -628,13 +628,13 @@ class InvqTests(CommonSetupTearDown):
def
checkVerificationWith2ClientsInvqOverflow
(
self
):
perstorage
=
self
.
openClientStorage
(
cache
=
"test"
)
self
.
assertEqual
(
perstorage
.
verify_result
,
"
full verification
"
)
self
.
assertEqual
(
perstorage
.
verify_result
,
"
empty cache
"
)
self
.
_storage
=
self
.
openClientStorage
()
oid
=
self
.
_storage
.
new_oid
()
# When we create a new storage, it should always do a full
# verification
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
full verification
"
)
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
empty cache
"
)
# do two storages of the object to make sure an invalidation
# message is generated
revid
=
self
.
_dostore
(
oid
)
...
...
@@ -836,7 +836,7 @@ class ReconnectionTests(CommonSetupTearDown):
self
.
_storage
=
self
.
openClientStorage
()
# When we create a new storage, it should always do a full
# verification
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
full verification
"
)
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
empty cache
"
)
self
.
_dostore
()
self
.
shutdownServer
()
self
.
pollDown
()
...
...
@@ -849,13 +849,13 @@ class ReconnectionTests(CommonSetupTearDown):
def
checkNoVerificationOnServerRestartWith2Clients
(
self
):
perstorage
=
self
.
openClientStorage
(
cache
=
"test"
)
self
.
assertEqual
(
perstorage
.
verify_result
,
"
full verification
"
)
self
.
assertEqual
(
perstorage
.
verify_result
,
"
empty cache
"
)
self
.
_storage
=
self
.
openClientStorage
()
oid
=
self
.
_storage
.
new_oid
()
# When we create a new storage, it should always do a full
# verification
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
full verification
"
)
self
.
assertEqual
(
self
.
_storage
.
verify_result
,
"
empty cache
"
)
# do two storages of the object to make sure an invalidation
# message is generated
revid
=
self
.
_dostore
(
oid
)
...
...
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