]> git.saurik.com Git - redis.git/commitdiff
added tests for invalid bulk argument
authorantirez <antirez@gmail.com>
Tue, 24 Aug 2010 09:49:05 +0000 (11:49 +0200)
committerantirez <antirez@gmail.com>
Tue, 24 Aug 2010 09:49:05 +0000 (11:49 +0200)
tests/unit/protocol.tcl

index 8717cd9ffa02914a3f82c7dd8858d3e9bec9efee..9eebf77fdf5d96e3e87cb169ce991c4ec243da96 100644 (file)
@@ -27,6 +27,13 @@ start_server {} {
         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"