Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
65707fa6
"vscode:/vscode.git/clone" did not exist on "78211aaaafe999205c4ffda16a43732617c690ea"
Commit
65707fa6
authored
May 05, 2016
by
antirez
Browse files
Quick fix to avoid false positive in replica migration test.
parent
1f3ed652
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/cluster/tests/12-replica-migration-2.tcl
View file @
65707fa6
...
@@ -45,11 +45,14 @@ test "Master #0 should lose its replicas" {
...
@@ -45,11 +45,14 @@ test "Master #0 should lose its replicas" {
}
}
test
"Resharding all the master #0 slots back to it"
{
test
"Resharding all the master #0 slots back to it"
{
# Wait for the cluster config to propagate before attempting a
# new resharding.
after 10000
set output
[
exec
\
set output
[
exec
\
../../../src/redis-trib.rb rebalance
\
../../../src/redis-trib.rb rebalance
\
--weight $
{
master0_id
}
=1
\
--weight $
{
master0_id
}
=1
\
--use-empty-masters
\
--use-empty-masters
\
127.0.0.1:
[
get_instance_attrib redis 0 port
]]
127.0.0.1:
[
get_instance_attrib redis 0 port
]
>@ stdout
]
}
}
test
"Master #0 should re-acquire one or more replicas"
{
test
"Master #0 should re-acquire one or more replicas"
{
...
...
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