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
Kirill Smelkov
ZODB
Commits
ba8ee57f
Commit
ba8ee57f
authored
Apr 29, 2010
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a test bug that led to spurious failures.
parent
29936392
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
src/ZEO/tests/zeo-fan-out.test
src/ZEO/tests/zeo-fan-out.test
+1
-10
No files found.
src/ZEO/tests/zeo-fan-out.test
View file @
ba8ee57f
...
@@ -85,15 +85,6 @@ Now, let's see if we can break it. :)
...
@@ -85,15 +85,6 @@ Now, let's see if we can break it. :)
... c.transaction_manager.abort()
... c.transaction_manager.abort()
... c.close()
... c.close()
>>> def g():
... c = db0.open(transaction.TransactionManager())
... r = c.root()
... for i in range(100):
... for j in range(1000, 2000):
... r[j].v += 1
... c.transaction_manager.commit()
... c.close()
>>> import threading
>>> import threading
>>> threadf = threading.Thread(target=f)
>>> threadf = threading.Thread(target=f)
>>> threadg = threading.Thread(target=f)
>>> threadg = threading.Thread(target=f)
...
@@ -107,7 +98,7 @@ Now, let's see if we can break it. :)
...
@@ -107,7 +98,7 @@ Now, let's see if we can break it. :)
... t = tm2.begin()
... t = tm2.begin()
... if r2[1].v + r2[2].v:
... if r2[1].v + r2[2].v:
... print 'oops', r2[1], r2[2]
... print 'oops', r2[1], r2[2]
... if r2[1].v ==
9
00:
... if r2[1].v ==
8
00:
... break # we caught up
... break # we caught up
... path = s2.fshelper.getBlobFilename(*blob_id)
... path = s2.fshelper.getBlobFilename(*blob_id)
... if os.path.exists(path):
... if os.path.exists(path):
...
...
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