Improve reliability of async parts of the soft shutdown tests
This commit is contained in:
parent
5cfbd72e7d
commit
b4dcff4636
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user