summaryrefslogtreecommitdiff
path: root/tests/sentinel/tests/includes/init-tests.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sentinel/tests/includes/init-tests.tcl')
-rw-r--r--tests/sentinel/tests/includes/init-tests.tcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/sentinel/tests/includes/init-tests.tcl b/tests/sentinel/tests/includes/init-tests.tcl
index 234f9c589..b4626caed 100644
--- a/tests/sentinel/tests/includes/init-tests.tcl
+++ b/tests/sentinel/tests/includes/init-tests.tcl
@@ -1,6 +1,6 @@
# Initialization tests -- most units will start including this.
-test "(init) Restart killed instances" {
+proc restart_killed_instances {} {
foreach type {redis sentinel} {
foreach_${type}_id id {
if {[get_instance_attrib $type $id pid] == -1} {
@@ -12,6 +12,10 @@ test "(init) Restart killed instances" {
}
}
+test "(init) Restart killed instances" {
+ restart_killed_instances
+}
+
test "(init) Remove old master entry from sentinels" {
foreach_sentinel_id id {
catch {S $id SENTINEL REMOVE mymaster}
@@ -37,6 +41,8 @@ test "(init) Sentinels can start monitoring a master" {
S $id SENTINEL SET mymaster down-after-milliseconds 2000
S $id SENTINEL SET mymaster failover-timeout 20000
S $id SENTINEL SET mymaster parallel-syncs 10
+ S $id SENTINEL SET mymaster notification-script ../../tests/includes/notify.sh
+ S $id SENTINEL SET mymaster client-reconfig-script ../../tests/includes/notify.sh
}
}