diff options
author | Wen Hui <wen.hui.ware@gmail.com> | 2022-11-24 06:10:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-24 13:10:41 +0200 |
commit | 75c66fb02c5df42935322fcf9c53853df1aaad31 (patch) | |
tree | 51015bb029afc21422a0833cae78d958d5ea8674 /tests/sentinel | |
parent | 3b462ce566e577ffcb35822a0a2372f691326cd4 (diff) | |
download | redis-75c66fb02c5df42935322fcf9c53853df1aaad31.tar.gz |
Update Sentinel Debug command json file and add test case for it (#11513)
Command SENTINEL DEBUG could be no arguments, which display all
configurable arguments and their values.
Update the command arguments in the docs (json file) to indicate that
arguments are optional
Diffstat (limited to 'tests/sentinel')
-rw-r--r-- | tests/sentinel/tests/14-debug-command.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/sentinel/tests/14-debug-command.tcl b/tests/sentinel/tests/14-debug-command.tcl new file mode 100644 index 000000000..dccb992a9 --- /dev/null +++ b/tests/sentinel/tests/14-debug-command.tcl @@ -0,0 +1,9 @@ +source "../tests/includes/init-tests.tcl" + +test "Sentinel debug test with arguments and without argument" { + set current_info_period [lindex [S 0 SENTINEL DEBUG] 1] + S 0 SENTINEL DEBUG info-period 8888 + assert_equal {8888} [lindex [S 0 SENTINEL DEBUG] 1] + S 0 SENTINEL DEBUG info-period $current_info_period + assert_equal $current_info_period [lindex [S 0 SENTINEL DEBUG] 1] +} |