summaryrefslogtreecommitdiff
path: root/tests/sentinel/tests/00-base.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sentinel/tests/00-base.tcl')
-rw-r--r--tests/sentinel/tests/00-base.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/sentinel/tests/00-base.tcl b/tests/sentinel/tests/00-base.tcl
index 1a9879a20..761ee82d1 100644
--- a/tests/sentinel/tests/00-base.tcl
+++ b/tests/sentinel/tests/00-base.tcl
@@ -12,6 +12,13 @@ if {$::simulate_error} {
}
}
+test "Sentinel commands sanity check" {
+ foreach_sentinel_id id {
+ assert_equal {72} [llength [S $id command list]]
+ assert_equal {15} [S $id command count]
+ }
+}
+
test "Basic failover works if the master is down" {
set old_port [RPort $master_id]
set addr [S 0 SENTINEL GET-MASTER-ADDR-BY-NAME mymaster]