summaryrefslogtreecommitdiff
path: root/tests/unit/shutdown.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/shutdown.tcl')
-rw-r--r--tests/unit/shutdown.tcl11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/shutdown.tcl b/tests/unit/shutdown.tcl
index 359f5bb63..5c618d285 100644
--- a/tests/unit/shutdown.tcl
+++ b/tests/unit/shutdown.tcl
@@ -26,6 +26,17 @@ start_server {tags {"shutdown external:skip"}} {
}
start_server {tags {"shutdown external:skip"}} {
+ test {SHUTDOWN ABORT can cancel SIGTERM} {
+ r debug pause-cron 1
+ set pid [s process_id]
+ exec kill -SIGTERM $pid
+ after 10; # Give signal handler some time to run
+ r shutdown abort
+ verify_log_message 0 "*Shutdown manually aborted*" 0
+ r debug pause-cron 0
+ r ping
+ } {PONG}
+
test {Temp rdb will be deleted in signal handle} {
for {set i 0} {$i < 20} {incr i} {
r set $i $i