Skip to content

Commit

Permalink
update some codes related to test case
Browse files Browse the repository at this point in the history
Signed-off-by: hwware <[email protected]>
  • Loading branch information
hwware committed Nov 22, 2024
1 parent d2a0381 commit aa2ba36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions tests/modules/moduleparameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

int test_module_update_parameter(ValkeyModuleCtx *ctx,
ValkeyModuleString **argv, int argc) {
ValkeyModule_UpdateRuntimeArgs(ctx, argv, argc);
return ValkeyModule_ReplyWithSimpleString(ctx, "Module runtime args test");
return ValkeyModule_UpdateRuntimeArgs(ctx, argv, argc);
}

int ValkeyModule_OnLoad(ValkeyModuleCtx *ctx, ValkeyModuleString **argv, int argc) {
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/moduleapi/moduleconfigs.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ start_server {tags {"modules"}} {
set t [r module list]
set modulename [lmap x [r module list] {dict get $x name}]
assert_not_equal [lsearch $modulename moduleparameter] -1
string match "10 20 30" [lmap x [r module list] {dict get $x args}]
assert_equal "{10 20 30}" [lmap x [r module list] {dict get $x args}]
r testmoduleparameter.update.parameter 40 50 60 70
string match "40 50 60 70" [lmap x [r module list] {dict get $x args}]
assert_equal "{40 50 60 70}" [lmap x [r module list] {dict get $x args}]
}
}

0 comments on commit aa2ba36

Please sign in to comment.