Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
Xavier Thompson
neoppod
Commits
b3b5175f
Commit
b3b5175f
authored
Jan 12, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: make it possible to run several threaded clusters at the same time
parent
dcbf0b02
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
92 additions
and
52 deletions
+92
-52
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+77
-52
neo/tests/threaded/test.py
neo/tests/threaded/test.py
+15
-0
No files found.
neo/tests/threaded/__init__.py
View file @
b3b5175f
This diff is collapsed.
Click to expand it.
neo/tests/threaded/test.py
View file @
b3b5175f
...
...
@@ -411,6 +411,21 @@ class Test(NEOThreadedTest):
finally
:
cluster
.
stop
()
def
test2Clusters
(
self
):
cluster1
=
NEOCluster
()
cluster2
=
NEOCluster
()
try
:
cluster1
.
start
()
cluster2
.
start
()
t1
,
c1
=
cluster1
.
getTransaction
()
t2
,
c2
=
cluster2
.
getTransaction
()
c1
.
root
()[
'1'
]
=
c2
.
root
()[
'2'
]
=
''
t1
.
commit
()
t2
.
commit
()
finally
:
cluster1
.
stop
()
cluster2
.
stop
()
if
__name__
==
"__main__"
:
unittest
.
main
()
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