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
628c5641
Commit
628c5641
authored
Jul 25, 2014
by
antirez
Browse files
Cluster test: init test, be patient during restarts.
parent
0d35b467
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/includes/init-tests.tcl
View file @
628c5641
...
@@ -14,8 +14,13 @@ test "(init) Restart killed instances" {
...
@@ -14,8 +14,13 @@ test "(init) Restart killed instances" {
test
"Cluster nodes are reachable"
{
test
"Cluster nodes are reachable"
{
foreach_redis_id id
{
foreach_redis_id id
{
# Every node should just know itself.
# Every node should be reachable.
assert
{[
R $id ping
]
eq
{
PONG
}}
wait_for_condition 1000 50
{
[
R $id ping
]
eq
{
PONG
}
}
else
{
catch
{
R $id ping
}
err
fail
"Node #
$id
keeps replying '
$err
' to PING."
}
}
}
}
}
...
...
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