Commit e791e2dd authored by antirez's avatar antirez
Browse files

Test: fix SPOP replication test count.

If count is 0 SADD is called without element arguments, which is
currently invalid.
parent 93b1320f
...@@ -135,7 +135,7 @@ start_server {tags {"repl"}} { ...@@ -135,7 +135,7 @@ start_server {tags {"repl"}} {
test {Replication of SPOP command -- alsoPropagate() API} { test {Replication of SPOP command -- alsoPropagate() API} {
$master del myset $master del myset
set size [randomInt 100] set size [expr 1+[randomInt 100]]
set content {} set content {}
for {set j 0} {$j < $size} {incr j} { for {set j 0} {$j < $size} {incr j} {
lappend content [randomValue] lappend content [randomValue]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment