Improve reliability of async parts of the soft shutdown tests

This commit is contained in:
John Sully 2022-09-28 21:05:42 +00:00
parent 5cfbd72e7d
commit b4dcff4636

View File

@ -43,12 +43,14 @@ start_server {tags {"soft_shutdown"} } {
start_server {tags {"soft_shutdown"} overrides {soft-shutdown yes} } { start_server {tags {"soft_shutdown"} overrides {soft-shutdown yes} } {
test {soft shutdown triggered by SIGINT} { test {soft shutdown triggered by SIGINT} {
exec kill -SIGINT [s process_id] exec kill -SIGINT [s process_id]
after 100
catch {[r ping]} e catch {[r ping]} e
assert_match {SHUTDOWN PENDING} $e assert_match {SHUTDOWN PENDING} $e
} }
test {second SIGINT forces a shutdown during a soft shutdown} { test {second SIGINT forces a shutdown during a soft shutdown} {
exec kill -SIGINT [s process_id] exec kill -SIGINT [s process_id]
after 100
catch {[r ping]} e catch {[r ping]} e
assert_match {*I/O*} $e assert_match {*I/O*} $e
} }