Commit 1e92fde3 authored by antirez's avatar antirez
Browse files

Fix SCAN bug regression test, avoiding empty SREM call.

parent ce17f76b
...@@ -246,7 +246,7 @@ start_server {tags {"scan"}} { ...@@ -246,7 +246,7 @@ start_server {tags {"scan"}} {
array set found {} array set found {}
# Populate the set # Populate the set
set numele [expr {100+[randomInt 1000]}] set numele [expr {101+[randomInt 1000]}]
for {set j 0} {$j < $numele} {incr j} { for {set j 0} {$j < $numele} {incr j} {
r sadd set $j r sadd set $j
if {$j >= 100} { if {$j >= 100} {
......
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