From b4dcff4636f46b4d0a51e983907d05f614857d1b Mon Sep 17 00:00:00 2001 From: John Sully Date: Wed, 28 Sep 2022 21:05:42 +0000 Subject: [PATCH] Improve reliability of async parts of the soft shutdown tests --- tests/unit/soft_shutdown.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/soft_shutdown.tcl b/tests/unit/soft_shutdown.tcl index 893a988f4..48328d72f 100644 --- a/tests/unit/soft_shutdown.tcl +++ b/tests/unit/soft_shutdown.tcl @@ -43,12 +43,14 @@ start_server {tags {"soft_shutdown"} } { start_server {tags {"soft_shutdown"} overrides {soft-shutdown yes} } { test {soft shutdown triggered by SIGINT} { exec kill -SIGINT [s process_id] + after 100 catch {[r ping]} e assert_match {SHUTDOWN PENDING} $e } test {second SIGINT forces a shutdown during a soft shutdown} { exec kill -SIGINT [s process_id] + after 100 catch {[r ping]} e assert_match {*I/O*} $e }