summaryrefslogtreecommitdiff
path: root/tests/unit/type/hash.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/type/hash.tcl')
-rw-r--r--tests/unit/type/hash.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/type/hash.tcl b/tests/unit/type/hash.tcl
index 6646ccc18..75ba29f77 100644
--- a/tests/unit/type/hash.tcl
+++ b/tests/unit/type/hash.tcl
@@ -310,10 +310,10 @@ start_server {tags {"hash"}} {
set _ $result
} {foo}
- test {HMSET wrong number of args} {
- catch {r hmset smallhash key1 val1 key2} err
- format $err
- } {*wrong number*}
+ test {HSET/HMSET wrong number of args} {
+ assert_error {*wrong number of arguments for 'hset' command} {r hset smallhash key1 val1 key2}
+ assert_error {*wrong number of arguments for 'hmset' command} {r hmset smallhash key1 val1 key2}
+ }
test {HMSET - small hash} {
set args {}