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.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/sentinel/tests/includes/init-tests.tcl b/tests/sentinel/tests/includes/init-tests.tcl
index b4626caed..be6a8f502 100644
--- a/tests/sentinel/tests/includes/init-tests.tcl
+++ b/tests/sentinel/tests/includes/init-tests.tcl
@@ -41,8 +41,10 @@ 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
+ if {$::leaked_fds_file != ""} {
+ S $id SENTINEL SET mymaster notification-script ../../tests/helpers/check_leaked_fds.tcl
+ S $id SENTINEL SET mymaster client-reconfig-script ../../tests/helpers/check_leaked_fds.tcl
+ }
}
}