Allow stopped redis processes to be killed in tests (#8552)
This commit is contained in:
parent
60d5ef4d82
commit
c6f0ea2c81
@ -186,6 +186,8 @@ proc is_alive pid {
|
|||||||
|
|
||||||
proc stop_instance pid {
|
proc stop_instance pid {
|
||||||
catch {exec kill $pid}
|
catch {exec kill $pid}
|
||||||
|
# Node might have been stopped in the test
|
||||||
|
catch {exec kill -SIGCONT $pid}
|
||||||
if {$::valgrind} {
|
if {$::valgrind} {
|
||||||
set max_wait 60000
|
set max_wait 60000
|
||||||
} else {
|
} else {
|
||||||
|
@ -72,6 +72,8 @@ proc kill_server config {
|
|||||||
# kill server and wait for the process to be totally exited
|
# kill server and wait for the process to be totally exited
|
||||||
send_data_packet $::test_server_fd server-killing $pid
|
send_data_packet $::test_server_fd server-killing $pid
|
||||||
catch {exec kill $pid}
|
catch {exec kill $pid}
|
||||||
|
# Node might have been stopped in the test
|
||||||
|
catch {exec kill -SIGCONT $pid}
|
||||||
if {$::valgrind} {
|
if {$::valgrind} {
|
||||||
set max_wait 60000
|
set max_wait 60000
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user