mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
Maybe fix tests/server:NoZombie occasional failure
Introduced a two-second wait for the KILLed process to die.
This commit is contained in:
parent
b77df878c1
commit
5ac394a3c1
@ -126,7 +126,10 @@ test_NoZombie() {
|
||||
assert kill -KILL $servald_pid
|
||||
tfw_log "After kill -KILL $servald_pid"
|
||||
ps -l $start_pid $servald_pid
|
||||
assert --message="zombie servald process does not exist" ! kill -0 $servald_pid
|
||||
wait_until --timeout=2 ! kill -0 $servald_pid 2>/dev/null
|
||||
tfw_log "After waiting"
|
||||
ps -l $start_pid $servald_pid
|
||||
assert --message="zombie servald process does not exist" ! kill -0 $servald_pid 2>/dev/null
|
||||
}
|
||||
teardown_NoZombie() {
|
||||
kill -TERM $start_pid
|
||||
|
Loading…
Reference in New Issue
Block a user