Commit 55a2e10b authored by antirez's avatar antirez
Browse files

Sentinel test: removed useless code to set SDOWN timeout.

The new common initialization code used to start a new unit already set
the timeout to 2000 milliseconds.
parent 56e18ba4
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
source "../sentinel-tests/includes/init-tests.tcl" source "../sentinel-tests/includes/init-tests.tcl"
test "We can failover with Sentinel 1 crashed" { test "We can failover with Sentinel 1 crashed" {
foreach_sentinel_id id {
S $id SENTINEL SET mymaster down-after-milliseconds 2000
}
set old_port [RI $master_id tcp_port] set old_port [RI $master_id tcp_port]
set addr [S 0 SENTINEL GET-MASTER-ADDR-BY-NAME mymaster] set addr [S 0 SENTINEL GET-MASTER-ADDR-BY-NAME mymaster]
assert {[lindex $addr 1] == $old_port} assert {[lindex $addr 1] == $old_port}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment