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
1db45ba5
Commit
1db45ba5
authored
Apr 30, 2014
by
antirez
Browse files
Cluster test: check for state=ok after slot allocation.
parent
11d9ecb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/cluster/tests/00-base.tcl
View file @
1db45ba5
...
...
@@ -84,3 +84,13 @@ test "After the join, every node gets a different config epoch" {
fail
"Config epoch conflict resolution is not working."
}
}
test
"Nodes should report cluster_state is ok now"
{
foreach_redis_id id
{
wait_for_condition 1000 50
{
[
CI $id cluster_state
]
eq
{
ok
}
}
else
{
fail
"Cluster node
$id
cluster_state:
[
CI $id cluster_state
]
"
}
}
}
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