diff options
author | Oran Agra <oran@redislabs.com> | 2020-02-20 17:56:52 +0200 |
---|---|---|
committer | Oran Agra <oran@redislabs.com> | 2020-02-23 16:48:37 +0200 |
commit | 0a643efa0c86e3053fd9a7bf7a74dfa4d0610f22 (patch) | |
tree | fbd827e00e9d2c4671ebf19ec213c93cc41a1b61 /tests/modules/fork.c | |
parent | e78c4e813cecfa97505efe29c073f8088542f69e (diff) | |
download | redis-0a643efa0c86e3053fd9a7bf7a74dfa4d0610f22.tar.gz |
fix race in module api test for fork
in some cases we were trying to kill the fork before it got created
Diffstat (limited to 'tests/modules/fork.c')
-rw-r--r-- | tests/modules/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modules/fork.c b/tests/modules/fork.c index 1a139ef1b..0443d9ef0 100644 --- a/tests/modules/fork.c +++ b/tests/modules/fork.c @@ -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 */ |