summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-02-25 10:37:52 +0100
committerantirez <antirez@gmail.com>2015-02-25 10:37:52 +0100
commit74354ceef53651aa30486a1b7181438d71cfbd1b (patch)
tree867b2eb196610f8911effce593d365e2379da3b3
parent27c30b0e84224cfc5f4189c26e16800f3e0dcd27 (diff)
downloadredis-74354ceef53651aa30486a1b7181438d71cfbd1b.tar.gz
Test: fixes a few tests after basic unit refactoring.
-rw-r--r--tests/unit/type/string.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/type/string.tcl b/tests/unit/type/string.tcl
index c98d56815..7122fd987 100644
--- a/tests/unit/type/string.tcl
+++ b/tests/unit/type/string.tcl
@@ -38,6 +38,7 @@ start_server {tags {"string"}} {
} {}
test {SET 10000 numeric keys and access all them in reverse order} {
+ r flushdb
set err {}
for {set x 0} {$x < 10000} {incr x} {
r set $x $x
@@ -53,9 +54,9 @@ start_server {tags {"string"}} {
set _ $err
} {}
- test {DBSIZE should be 10101 now} {
+ test {DBSIZE should be 10000 now} {
r dbsize
- } {10101}
+ } {10000}
}
test "SETNX target key missing" {
@@ -119,6 +120,7 @@ start_server {tags {"string"}} {
} {BAR {} FOO {}}
test {GETSET (set new value)} {
+ r del foo
list [r getset foo xyz] [r get foo]
} {{} xyz}