Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c7e31c68
Commit
c7e31c68
authored
Jan 22, 2015
by
antirez
Browse files
Merge branch 'testing' into 3.0
parents
096ad2e8
400ae01a
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/cluster/tests/includes/init-tests.tcl
View file @
c7e31c68
...
@@ -27,12 +27,17 @@ test "Cluster nodes are reachable" {
...
@@ -27,12 +27,17 @@ test "Cluster nodes are reachable" {
test
"Cluster nodes hard reset"
{
test
"Cluster nodes hard reset"
{
foreach_redis_id id
{
foreach_redis_id id
{
if
{
$::valgrind
}
{
set node_timeout 10000
}
else
{
set node_timeout 3000
}
catch
{
R $id flushall
}
;
# May fail for readonly slaves.
catch
{
R $id flushall
}
;
# May fail for readonly slaves.
R $id MULTI
R $id MULTI
R $id cluster reset hard
R $id cluster reset hard
R $id cluster set-config-epoch
[
expr
{
$id
+1
}]
R $id cluster set-config-epoch
[
expr
{
$id
+1
}]
R $id EXEC
R $id EXEC
R $id config set cluster-node-timeout
3000
R $id config set cluster-node-timeout
$node_timeout
R $id config set cluster-slave-validity-factor 10
R $id config set cluster-slave-validity-factor 10
R $id config rewrite
R $id config rewrite
}
}
...
...
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