Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
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
Stefane Fermigier
neo
Commits
e823b93c
Commit
e823b93c
authored
Jul 04, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: compression can be in threaded clusters
For the moment, this is only useful for debugging.
parent
0accf110
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
neo/tests/threaded/__init__.py
neo/tests/threaded/__init__.py
+4
-4
No files found.
neo/tests/threaded/__init__.py
View file @
e823b93c
...
...
@@ -316,8 +316,8 @@ class StorageApplication(ServerNode, neo.storage.app.Application):
class
ClientApplication
(
Node
,
neo
.
client
.
app
.
Application
):
@
SerializedEventManager
.
decorate
def
__init__
(
self
,
master_nodes
,
name
):
super
(
ClientApplication
,
self
).
__init__
(
master_nodes
,
name
)
def
__init__
(
self
,
master_nodes
,
name
,
**
kw
):
super
(
ClientApplication
,
self
).
__init__
(
master_nodes
,
name
,
**
kw
)
self
.
em
.
_lock
=
threading
.
Lock
()
def
setPoll
(
self
,
master
=
False
):
...
...
@@ -545,7 +545,7 @@ class NEOCluster(object):
def
__init__
(
self
,
master_count
=
1
,
partitions
=
1
,
replicas
=
0
,
upstream
=
None
,
adapter
=
os
.
getenv
(
'NEO_TESTS_ADAPTER'
,
'SQLite'
),
storage_count
=
None
,
db_list
=
None
,
clear_databases
=
True
,
db_user
=
DB_USER
,
db_password
=
''
):
db_user
=
DB_USER
,
db_password
=
''
,
compress
=
True
):
self
.
name
=
'neo_%s'
%
self
.
_allocate
(
'name'
,
lambda
:
random
.
randint
(
0
,
100
))
master_list
=
[
MasterApplication
.
newAddress
()
...
...
@@ -577,7 +577,7 @@ class NEOCluster(object):
for
x
in
db_list
]
self
.
admin_list
=
[
AdminApplication
(
**
kw
)]
self
.
client
=
ClientApplication
(
name
=
self
.
name
,
master_nodes
=
self
.
master_nodes
)
master_nodes
=
self
.
master_nodes
,
compress
=
compress
)
self
.
neoctl
=
NeoCTL
(
self
.
admin
.
getVirtualAddress
())
# A few shortcuts that work when there's only 1 master/storage/admin
...
...
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