diff --git a/src/module.c b/src/module.c index 33529ad626..5f9dff0402 100644 --- a/src/module.c +++ b/src/module.c @@ -2260,9 +2260,7 @@ int moduleIsModuleCommand(void *module_handle, struct serverCommand *cmd) { * represents the values of the updated arguments. * Once 'CONFIG REWRITE' command is called, the updated argument values can be saved into conf file. * - * Returns: - * - VALKEYMODULE_ERR on failure. - */ + * The function always returns VALKEYMODULE_OK. */ int VM_UpdateRuntimeArgs(ValkeyModuleCtx *ctx, ValkeyModuleString **argv, int argc) { struct moduleLoadQueueEntry *loadmod = ctx->module->loadmod; for (int i = 0; i < loadmod->argc; i++) { diff --git a/tests/unit/moduleapi/moduleconfigs.tcl b/tests/unit/moduleapi/moduleconfigs.tcl index 44a8d68fa8..54de5f2611 100644 --- a/tests/unit/moduleapi/moduleconfigs.tcl +++ b/tests/unit/moduleapi/moduleconfigs.tcl @@ -245,7 +245,7 @@ start_server {tags {"modules"}} { assert_equal [r config get moduleconfigs.memory_numeric] "moduleconfigs.memory_numeric 1024" } } - test {Module Update Args } { + test {Module Update Args} { r module load $testmoduleparameter 10 20 30 set t [r module list]