]> git.saurik.com Git - redis.git/blobdiff - tests/unit/protocol.tcl
Issue 179 fixed, now redis-cli is able to parse correctly multi bulk replies with...
[redis.git] / tests / unit / protocol.tcl
index 28334e30de6cbcd9c142ab68ab00809bb71a47b6..9eebf77fdf5d96e3e87cb169ce991c4ec243da96 100644 (file)
@@ -1,4 +1,4 @@
-start_server default.conf {} {
+start_server {} {
     test {Handle an empty query well} {
         set fd [r channel]
         puts -nonewline $fd "\r\n"
@@ -27,6 +27,13 @@ start_server default.conf {} {
         gets $fd
     } {*invalid bulk*count*}
 
+    test {bulk payload is not a number} {
+        set fd [r channel]
+        puts -nonewline $fd "SET x blabla\r\n"
+        flush $fd
+        gets $fd
+    } {*invalid bulk*count*}
+
     test {Multi bulk request not followed by bulk args} {
         set fd [r channel]
         puts -nonewline $fd "*1\r\nfoo\r\n"