summaryrefslogtreecommitdiffstats
path: root/tests/sentinel/tests/04-slave-selection.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sentinel/tests/04-slave-selection.tcl')
-rw-r--r--tests/sentinel/tests/04-slave-selection.tcl5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/sentinel/tests/04-slave-selection.tcl b/tests/sentinel/tests/04-slave-selection.tcl
new file mode 100644
index 0000000..3d2ca64
--- /dev/null
+++ b/tests/sentinel/tests/04-slave-selection.tcl
@@ -0,0 +1,5 @@
+# Test slave selection algorithm.
+#
+# This unit should test:
+# 1) That when there are no suitable slaves no failover is performed.
+# 2) That among the available slaves, the one with better offset is picked.