From 1e92fde3d34237ff4d30f8a46f74c34f037ed1dd Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 14 Jun 2018 12:21:54 +0200 Subject: [PATCH] Fix SCAN bug regression test, avoiding empty SREM call. --- tests/unit/scan.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/scan.tcl b/tests/unit/scan.tcl index a8cc8116..c0f4349d 100644 --- a/tests/unit/scan.tcl +++ b/tests/unit/scan.tcl @@ -246,7 +246,7 @@ start_server {tags {"scan"}} { array set found {} # Populate the set - set numele [expr {100+[randomInt 1000]}] + set numele [expr {101+[randomInt 1000]}] for {set j 0} {$j < $numele} {incr j} { r sadd set $j if {$j >= 100} {