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
351ad518
Commit
351ad518
authored
Jul 25, 2014
by
antirez
Browse files
Cluster test: node reachability condition fixed.
parent
628c5641
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/includes/init-tests.tcl
View file @
351ad518
...
@@ -16,7 +16,8 @@ test "Cluster nodes are reachable" {
...
@@ -16,7 +16,8 @@ test "Cluster nodes are reachable" {
foreach_redis_id id
{
foreach_redis_id id
{
# Every node should be reachable.
# Every node should be reachable.
wait_for_condition 1000 50
{
wait_for_condition 1000 50
{
[
R $id ping
]
eq
{
PONG
}
([
catch
{
R $id ping
}
ping_reply
]
== 0
)
&&
(
$ping
_reply eq
{
PONG
})
}
else
{
}
else
{
catch
{
R $id ping
}
err
catch
{
R $id ping
}
err
fail
"Node #
$id
keeps replying '
$err
' to PING."
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