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
75fc3420
Commit
75fc3420
authored
Apr 05, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
72a4a428
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
neo/tests/threaded/test.py
neo/tests/threaded/test.py
+4
-5
No files found.
neo/tests/threaded/test.py
View file @
75fc3420
...
@@ -193,7 +193,7 @@ class Test(NEOThreadedTest):
...
@@ -193,7 +193,7 @@ class Test(NEOThreadedTest):
with
Patch
(
PCounterWithResolution
,
_p_resolveConflict
=
resolve
):
with
Patch
(
PCounterWithResolution
,
_p_resolveConflict
=
resolve
):
self
.
assertEqual
(
self
.
_testUndoConflict
(
cluster
,
1
,
3
).
x
,
big
)
self
.
assertEqual
(
self
.
_testUndoConflict
(
cluster
,
1
,
3
).
x
,
big
)
@
expectedFailure
(
POSException
.
ConflictError
)
# TODO recheck
@
expectedFailure
(
POSException
.
ConflictError
)
@
with_cluster
()
@
with_cluster
()
def
testUndoConflictDuringStore
(
self
,
cluster
):
def
testUndoConflictDuringStore
(
self
,
cluster
):
self
.
_testUndoConflict
(
cluster
,
1
)
self
.
_testUndoConflict
(
cluster
,
1
)
...
@@ -812,7 +812,7 @@ class Test(NEOThreadedTest):
...
@@ -812,7 +812,7 @@ class Test(NEOThreadedTest):
@
with_cluster
()
@
with_cluster
()
@
with_cluster
()
@
with_cluster
()
def
test2Clusters
(
self
,
cluster1
,
cluster2
):
# NOTE
def
test2Clusters
(
self
,
cluster1
,
cluster2
):
if
1
:
if
1
:
t1
,
c1
=
cluster1
.
getTransaction
()
t1
,
c1
=
cluster1
.
getTransaction
()
t2
,
c2
=
cluster2
.
getTransaction
()
t2
,
c2
=
cluster2
.
getTransaction
()
...
@@ -840,7 +840,6 @@ class Test(NEOThreadedTest):
...
@@ -840,7 +840,6 @@ class Test(NEOThreadedTest):
@
with_cluster
(
master_count
=
3
,
partitions
=
10
,
replicas
=
1
,
storage_count
=
3
)
@
with_cluster
(
master_count
=
3
,
partitions
=
10
,
replicas
=
1
,
storage_count
=
3
)
def
testShutdown
(
self
,
cluster
):
def
testShutdown
(
self
,
cluster
):
# NOTE vvv
def
before_finish
(
_
):
def
before_finish
(
_
):
# tell admin to shutdown the cluster
# tell admin to shutdown the cluster
cluster
.
neoctl
.
setClusterState
(
ClusterStates
.
STOPPING
)
cluster
.
neoctl
.
setClusterState
(
ClusterStates
.
STOPPING
)
...
@@ -1047,7 +1046,7 @@ class Test(NEOThreadedTest):
...
@@ -1047,7 +1046,7 @@ class Test(NEOThreadedTest):
c
.
getConnection
().
close
()
c
.
getConnection
().
close
()
c
,
=
cluster
.
storage
.
nm
.
getClientList
()
c
,
=
cluster
.
storage
.
nm
.
getClientList
()
c
.
getConnection
().
close
()
c
.
getConnection
().
close
()
#self.tic() # NOTE works ok with tic() commented
self
.
tic
()
# modify x with another client
# modify x with another client
with
cluster
.
newClient
()
as
client
:
with
cluster
.
newClient
()
as
client
:
...
@@ -1055,7 +1054,7 @@ class Test(NEOThreadedTest):
...
@@ -1055,7 +1054,7 @@ class Test(NEOThreadedTest):
client
.
tpc_begin
(
None
,
txn
)
client
.
tpc_begin
(
None
,
txn
)
client
.
store
(
x1
.
_p_oid
,
x1
.
_p_serial
,
y
,
''
,
txn
)
client
.
store
(
x1
.
_p_oid
,
x1
.
_p_serial
,
y
,
''
,
txn
)
tid
=
client
.
tpc_finish
(
txn
)
tid
=
client
.
tpc_finish
(
txn
)
#self.tic() # NOTE ----//----
self
.
tic
()
# Check reconnection to the master and storage.
# Check reconnection to the master and storage.
self
.
assertTrue
(
cluster
.
client
.
history
(
x1
.
_p_oid
))
self
.
assertTrue
(
cluster
.
client
.
history
(
x1
.
_p_oid
))
...
...
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