X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/f54c299091e94ba69d298c1d782589c1e9903b9c..824ea0177f19218d925feefbfe836718c46351d5:/tests/unit/sort.tcl diff --git a/tests/unit/sort.tcl b/tests/unit/sort.tcl index d8f93e83..38813065 100644 --- a/tests/unit/sort.tcl +++ b/tests/unit/sort.tcl @@ -150,6 +150,13 @@ start_server { r exists zap } {0} + test "SORT with STORE removes key if result is empty (github issue 227)" { + r flushdb + r lpush foo bar + r sort emptylist store foo + r exists foo + } {0} + tags {"slow"} { set num 100 set res [create_random_dataset $num lpush]