From e791e2dda19b83307790527ecd5f0086322a1478 Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 13 Mar 2015 17:30:13 +0100 Subject: [PATCH] Test: fix SPOP replication test count. If count is 0 SADD is called without element arguments, which is currently invalid. --- tests/integration/replication-4.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/replication-4.tcl b/tests/integration/replication-4.tcl index 3af2e921..1c559b70 100644 --- a/tests/integration/replication-4.tcl +++ b/tests/integration/replication-4.tcl @@ -135,7 +135,7 @@ start_server {tags {"repl"}} { test {Replication of SPOP command -- alsoPropagate() API} { $master del myset - set size [randomInt 100] + set size [expr 1+[randomInt 100]] set content {} for {set j 0} {$j < $size} {incr j} { lappend content [randomValue]