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
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
3443d483
Commit
3443d483
authored
6 years ago
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa: remove useless indentation in testSafeTweak
parent
b621a98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
neo/tests/threaded/testReplication.py
neo/tests/threaded/testReplication.py
+9
-12
No files found.
neo/tests/threaded/testReplication.py
View file @
3443d483
...
@@ -404,19 +404,16 @@ class ReplicationTests(NEOThreadedTest):
...
@@ -404,19 +404,16 @@ class ReplicationTests(NEOThreadedTest):
orig
(
*
args
)
orig
(
*
args
)
sys
.
exit
()
sys
.
exit
()
s0
,
s1
,
s2
=
cluster
.
storage_list
s0
,
s1
,
s2
=
cluster
.
storage_list
if
1
:
cluster
.
start
([
s0
,
s1
])
cluster
.
start
([
s0
,
s1
])
s2
.
start
()
s2
.
start
()
self
.
tic
()
cluster
.
enableStorageList
([
s2
])
# 2 UP_TO_DATE cells become FEEDING:
# they are dropped only when the replication is done,
# so that 1 storage can still die without data loss.
with
Patch
(
s0
.
dm
,
changePartitionTable
=
changePartitionTable
):
cluster
.
neoctl
.
tweakPartitionTable
()
self
.
tic
()
self
.
tic
()
cluster
.
enableStorageList
([
s2
])
# 2 UP_TO_DATE cells become FEEDING:
# they are dropped only when the replication is done,
# so that 1 storage can still die without data loss.
with
Patch
(
s0
.
dm
,
changePartitionTable
=
changePartitionTable
):
cluster
.
neoctl
.
tweakPartitionTable
()
self
.
tic
()
self
.
assertEqual
(
cluster
.
neoctl
.
getClusterState
(),
ClusterStates
.
RUNNING
)
@
with_cluster
(
start_cluster
=
0
,
partitions
=
3
,
replicas
=
1
,
storage_count
=
3
)
@
with_cluster
(
start_cluster
=
0
,
partitions
=
3
,
replicas
=
1
,
storage_count
=
3
)
def
testReplicationAbortedBySource
(
self
,
cluster
):
def
testReplicationAbortedBySource
(
self
,
cluster
):
...
...
This diff is collapsed.
Click to expand it.
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