summaryrefslogtreecommitdiff
path: root/tests/unit/protocol.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/protocol.tcl')
-rw-r--r--tests/unit/protocol.tcl12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/unit/protocol.tcl b/tests/unit/protocol.tcl
index ec4a1a4aa..50305bd27 100644
--- a/tests/unit/protocol.tcl
+++ b/tests/unit/protocol.tcl
@@ -139,13 +139,17 @@ start_server {tags {"protocol network"}} {
test {RESP3 attributes} {
r hello 3
- set res [r debug protocol attrib]
- # currently the parser in redis.tcl ignores the attributes
+ assert_equal {Some real reply following the attribute} [r debug protocol attrib]
+ assert_equal {key-popularity {key:123 90}} [r attributes]
+
+ # make sure attributes are not kept from previous command
+ r ping
+ assert_error {*attributes* no such element in array} {r attributes}
# restore state
r hello 2
- set _ $res
- } {Some real reply following the attribute} {needs:debug resp3}
+ set _ ""
+ } {} {needs:debug resp3}
test {RESP3 attributes readraw} {
r hello 3