summaryrefslogtreecommitdiff
path: root/tests/modules/subcommands.c
diff options
context:
space:
mode:
authorOran Agra <oran@redislabs.com>2022-04-27 16:32:17 +0300
committerGitHub <noreply@github.com>2022-04-27 16:32:17 +0300
commitd375595d5e3ae2e5c29e6c00a2dc3d60578fd9fc (patch)
treec4d753d3ee0109e3513a879af8c5487e002d10a3 /tests/modules/subcommands.c
parentfb4e0d400ff82117104bde5296c477ad95f8dd41 (diff)
parentc1f3020631ea8640f2b6aa666a245dd76635a807 (diff)
downloadredis-7.0.0.tar.gz
Merge pull request #10652 from oranagra/redis-7.0.07.0.0
Redis 7.0.0
Diffstat (limited to 'tests/modules/subcommands.c')
-rw-r--r--tests/modules/subcommands.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/modules/subcommands.c b/tests/modules/subcommands.c
index 7cb337331..3486e86b4 100644
--- a/tests/modules/subcommands.c
+++ b/tests/modules/subcommands.c
@@ -11,7 +11,10 @@ int cmd_set(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
int cmd_get(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
UNUSED(argv);
- UNUSED(argc);
+
+ if (argc > 4) /* For testing */
+ return RedisModule_WrongArity(ctx);
+
RedisModule_ReplyWithSimpleString(ctx, "OK");
return REDISMODULE_OK;
}