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
35e8bc30
Commit
35e8bc30
authored
Mar 03, 2014
by
antirez
Browse files
Sentinel test: use 1000 as retry in initial 00 unit test.
parent
1734f7ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/sentinel-tests/00-base.tcl
View file @
35e8bc30
...
@@ -8,7 +8,7 @@ test "Basic failover works if the master is down" {
...
@@ -8,7 +8,7 @@ test "Basic failover works if the master is down" {
assert
{[
lindex $addr 1
]
== $old_port
}
assert
{[
lindex $addr 1
]
== $old_port
}
kill_instance redis $master_id
kill_instance redis $master_id
foreach_sentinel_id id
{
foreach_sentinel_id id
{
wait_for_condition 100 50
{
wait_for_condition 100
0
50
{
[
lindex
[
S $id SENTINEL GET-MASTER-ADDR-BY-NAME mymaster
]
1
]
!= $old_port
[
lindex
[
S $id SENTINEL GET-MASTER-ADDR-BY-NAME mymaster
]
1
]
!= $old_port
}
else
{
}
else
{
fail
"At least one Sentinel did not received failover info"
fail
"At least one Sentinel did not received failover info"
...
...
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