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

@ -42,7 +42,7 @@ int fork_create(RedisModuleCtx *ctx, RedisModuleString **argv, int argc)
/* child */
RedisModule_Log(ctx, "notice", "fork child started");
usleep(200000);
usleep(500000);
RedisModule_Log(ctx, "notice", "fork child exiting");
RedisModule_ExitFromChild(code_to_exit_with);
/* unreachable */