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
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
Kirill Smelkov
ZEO
Commits
9ef630e2
Commit
9ef630e2
authored
Jul 08, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test
parent
2aa6f3d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/ZEO/tests/testZEO2.py
src/ZEO/tests/testZEO2.py
+11
-11
No files found.
src/ZEO/tests/testZEO2.py
View file @
9ef630e2
...
@@ -175,22 +175,22 @@ So, we arrange to get an error in vote:
...
@@ -175,22 +175,22 @@ So, we arrange to get an error in vote:
...
...
ValueError
ValueError
#
When we do, the storage server's transaction lock shouldn't be held:
When we do, the storage server's transaction lock shouldn't be held:
# >>> '1' in server._commit_locks
>>> zs.lock_manager.locked is not None
#
False
False
#
Of course, if vote suceeds, the lock will be held:
Of course, if vote suceeds, the lock will be held:
#
>>> vote_should_fail = False
>>> vote_should_fail = False
#
>>> zs.tpc_begin('1', '', '', {})
>>> zs.tpc_begin('1', '', '', {})
#
>>> zs.storea(ZODB.utils.p64(99), ZODB.utils.z64, 'x', '1')
>>> zs.storea(ZODB.utils.p64(99), ZODB.utils.z64, 'x', '1')
#
>>> _ = zs.vote('1') # doctest: +ELLIPSIS
>>> _ = zs.vote('1') # doctest: +ELLIPSIS
# >>> '1' in server._commit_locks
>>> zs.lock_manager.locked is not None
#
True
True
#
>>> zs.tpc_abort('1')
>>> zs.tpc_abort('1')
"""
"""
...
...
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