diff options
author | antirez <antirez@gmail.com> | 2018-06-26 16:08:32 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2018-06-26 16:08:43 +0200 |
commit | 438317796b7a34b100e47ce2c5acdf184dfdf53d (patch) | |
tree | 09a9413cbaa8b0709401bfb47f0bed1dc1cc1622 | |
parent | 27178a3fde83c1b81624083670d922313aca1370 (diff) | |
download | redis-438317796b7a34b100e47ce2c5acdf184dfdf53d.tar.gz |
Sentinel: test command renaming feature.
-rw-r--r-- | tests/sentinel/tests/07-down-conditions.tcl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/sentinel/tests/07-down-conditions.tcl b/tests/sentinel/tests/07-down-conditions.tcl index a60656e59..fb2993b6f 100644 --- a/tests/sentinel/tests/07-down-conditions.tcl +++ b/tests/sentinel/tests/07-down-conditions.tcl @@ -66,3 +66,13 @@ test "SDOWN is triggered by misconfigured instance repling with errors" { R 0 bgsave ensure_master_up } + +# We use this test setup to also test command renaming, as a side +# effect of the master going down if we send PONG instead of PING +test "SDOWN is triggered if we rename PING to PONG" { + ensure_master_up + S 4 SENTINEL SET mymaster rename-command PING PONG + ensure_master_down + S 4 SENTINEL SET mymaster rename-command PING PING + ensure_master_up +} |