fix race in module api test for fork

in some cases we were trying to kill the fork before it got created
This commit is contained in:
Oran Agra
2020-02-20 17:56:52 +02:00
committed by antirez
parent 2ecab0b63a
commit 12626ce9bb
2 changed files with 2 additions and 3 deletions

View File

@ -20,9 +20,8 @@ start_server {tags {"modules"}} {
test {Module fork kill} {
r fork.create 3
after 20
after 250
r fork.kill
after 100
assert {[count_log_message "fork child started"] eq "2"}
assert {[count_log_message "Received SIGUSR1 in child"] eq "1"}