summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2014-06-19 15:58:45 +0200
committerantirez <antirez@gmail.com>2014-06-19 15:58:45 +0200
commitf62dfa0f50f70e4651201b5803aa5c6f7f43721c (patch)
treeecf0c0da17e4ecae80710cdc90cf1e37b3a0e613 /tests
parentd06d8d6ffabf92914cb4f640ce3000a63d22c3ad (diff)
downloadredis-f62dfa0f50f70e4651201b5803aa5c6f7f43721c.tar.gz
Sentinel test: tolerate larger delays in init tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/sentinel/tests/includes/init-tests.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/sentinel/tests/includes/init-tests.tcl b/tests/sentinel/tests/includes/init-tests.tcl
index cb359ea1b..c48fb5379 100644
--- a/tests/sentinel/tests/includes/init-tests.tcl
+++ b/tests/sentinel/tests/includes/init-tests.tcl
@@ -37,7 +37,7 @@ test "(init) Sentinels can start monitoring a master" {
test "(init) Sentinels can talk with the master" {
foreach_sentinel_id id {
- wait_for_condition 100 50 {
+ wait_for_condition 1000 50 {
[catch {S $id SENTINEL GET-MASTER-ADDR-BY-NAME mymaster}] == 0
} else {
fail "Sentinel $id can't talk with the master."
@@ -48,7 +48,7 @@ test "(init) Sentinels can talk with the master" {
test "(init) Sentinels are able to auto-discover other sentinels" {
set sentinels [llength $::sentinel_instances]
foreach_sentinel_id id {
- wait_for_condition 100 50 {
+ wait_for_condition 1000 50 {
[dict get [S $id SENTINEL MASTER mymaster] num-other-sentinels] == ($sentinels-1)
} else {
fail "At least some sentinel can't detect some other sentinel"
@@ -58,7 +58,7 @@ test "(init) Sentinels are able to auto-discover other sentinels" {
test "(init) Sentinels are able to auto-discover slaves" {
foreach_sentinel_id id {
- wait_for_condition 100 50 {
+ wait_for_condition 1000 50 {
[dict get [S $id SENTINEL MASTER mymaster] num-slaves] == $redis_slaves
} else {
fail "At least some sentinel can't detect some slave"