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
a7b82ee1
Commit
a7b82ee1
authored
Apr 28, 2009
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More thorough version of the invalidation test
parent
33019f0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
src/ZODB/tests/testMVCCMappingStorage.py
src/ZODB/tests/testMVCCMappingStorage.py
+9
-9
No files found.
src/ZODB/tests/testMVCCMappingStorage.py
View file @
a7b82ee1
...
...
@@ -38,23 +38,23 @@ class MVCCTests:
# This will fail if the Connection doesn't poll for changes.
db
=
DB
(
self
.
_storage
)
try
:
c1
=
db
.
open
()
c1
=
db
.
open
(
transaction
.
TransactionManager
()
)
r1
=
c1
.
root
()
r1
[
'myobj'
]
=
'yes'
c2
=
db
.
open
()
c2
=
db
.
open
(
transaction
.
TransactionManager
()
)
r2
=
c2
.
root
()
self
.
assert_
(
'myobj'
not
in
r2
)
storage
=
c1
.
_storage
t
=
transaction
.
Transaction
()
t
.
description
=
'invalidation test'
storage
.
tpc_begin
(
t
)
c1
.
commit
(
t
)
storage
.
tpc_vote
(
t
)
storage
.
tpc_finish
(
t
)
old_tid
=
c1
.
_storage
.
_polled_tid
c1
.
transaction_manager
.
commit
()
new_tid
=
c1
.
_storage
.
_polled_tid
self
.
assertNotEqual
(
new_tid
,
old_tid
)
self
.
assertEqual
(
c2
.
_storage
.
_polled_tid
,
old_tid
)
self
.
assert_
(
'myobj'
not
in
r2
)
c2
.
sync
()
self
.
assertEqual
(
new_tid
,
c2
.
_storage
.
_polled_tid
)
self
.
assert_
(
'myobj'
in
r2
)
self
.
assert_
(
r2
[
'myobj'
]
==
'yes'
)
finally
:
...
...
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